https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86184
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-06-18 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to zhonghao from comment #0) > gcc++ produces errors when compiling the following code: I don't see any errors. You didn't say which version of GCC you're using or what options you're using, as requested by https://gcc.gnu.org/bugs/