This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77502] -Wzero-as-null-pointer-constant : misleading/imprecise messages
- From: "petschy at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Sep 2016 18:01:00 +0000
- Subject: [Bug c++/77502] -Wzero-as-null-pointer-constant : misleading/imprecise messages
- Auto-submitted: auto-generated
- References: <bug-77502-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77502
--- Comment #1 from petschy at gmail dot com ---
I found another case: initializing an array of structs:
struct X
{
const char* p;
int i;
};
X x[] = {
{ "hello", 0 },
{ 0, 0 }, // !
{ 0, 0 }, // !
{ 0, 0 } // !
}; // all 3 errors marked here