[Bug c++/32385] g++ rejects struct in default argument of template function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32385 --- Comment #8 from Andrew Pinski --- clang also rejects this: :3:34: error: 'A::(unnamed struct at :3:34)' cannot be defined in a type specifier template void foo(int = ((struct { int i; }) {0}).i); ^ :3:57: er
[Bug c++/32385] g++ rejects struct in default argument of template function
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32385 Jason Merrill changed: What|Removed |Added Keywords|ice-on-valid-code, | |monitored