https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86181
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid Status|RESOLVED |SUSPENDED Last reconfirmed| |2018-08-07 Resolution|INVALID |--- Summary|static object mangling |[DR 1839] static object |conflicts |mangling conflicts Ever confirmed|0 |1 --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- CWG 1839 hasn't been resolved yet and doesn't even have a proposed resolution in the issues list. It's not a bug for GCC to follow the current standard. However DR 426 says it's ill-formed. As a result of DR 426 the meaning of the program changed from undefined to ill-formed between C++14 and C++17, so GCC was previously correct, but the standard changed. http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#426 If 1839 is going to make more changes in this area then this PR should be suspended until any change happens.