[Bug c++/32385] g++ rejects struct in default argument of template function

2021-07-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

2011-03-12 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32385 Jason Merrill changed: What|Removed |Added Keywords|ice-on-valid-code, | |monitored