This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71394] -Werror=conversion-null identifies incorrect data member of member initializer list
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 04 Jun 2016 22:03:04 +0000
- Subject: [Bug c++/71394] -Werror=conversion-null identifies incorrect data member of member initializer list
- Auto-submitted: auto-generated
- References: <bug-71394-4 at http dot gcc dot gnu dot org/bugzilla/>
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