seanbaxter / circle

The compiler is available for download. Get it!
http://www.circle-lang.org/
2.42k stars 74 forks source link

union with reference member causes SIGSEGV #210

Open eoan-ermine opened 3 months ago

eoan-ermine commented 3 months ago

godbolt

#include <cstdio>

union S {
    int& x;
};

int main(int argc, char** argv) {
  int x = 5;
  S obj { x };
}