fork download
  1. union U {
  2. int a;
  3. int & b;
  4. };
  5. int main() {}
  6.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:11: error: ‘U::b’ may not have reference type ‘int&’ because it is a member of a union
     int & b;
           ^
stdout
Standard output is empty