[Bug c++/71394] -Werror=conversion-null identifies incorrect data member of member initializer list
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jun 4 22:03:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71394
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-06-04
CC| |manu at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Probably the warning uses input_location and that points to the end of the
mem-initializers list.
Clang gives:
prog.cc:9:7: warning: implicit conversion of NULL constant to 'unsigned int'
[-Wnull-conversion]
n(NULL)
~^~~~
0
More information about the Gcc-bugs
mailing list