http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39970
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2012-01-06 CC| |jason at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-06 15:15:25 UTC --- We started rejecting this testcase in 3.4 due to the access violation. If we change 'class' to 'struct' we still don't (as of pre-4.7) diagnose the invalid constant-expression because the default argument is never used.