------- Comment #2 from simartin at gcc dot gnu dot org 2007-11-10 20:33 ------- For information, the compiler accepts this because it implements DR 45 (http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#45).
It looks like the implementation has been in for a long time, but the it did not work completely, and it was fixed to fix PR#18681. This could explain why this code was accepted up to 4.0.3. -- simartin at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simartin at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33468