[Bug c/37200] duplicate warning message with braced initializer list

2018-07-24 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37200

Eric Gallager  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |INVALID

--- Comment #4 from Eric Gallager  ---
(In reply to Eric Gallager from comment #3)
> (In reply to Eric Gallager from comment #2)
> > Confirmed that gcc still prints 2 warnings for the testcase. It's necessary
> > to set the standard manually to c89 or gnu89 now that GCC defaults to
> > -std=gnu11. Now that GCC has carets for its diagnostics, we can see that the
> > 2 warnings actually point to different places:
> > 
> > $ /usr/local/bin/gcc -c -std=gnu89 -pedantic 37200.c
> > 37200.c: In function ‘foo’:
> > 37200.c:10:11: warning: initializer element is not computable at load time
> > [-Wpedantic]
> >{   (void**) >tst }
> >^
> > 37200.c:10:3: warning: initializer element is not computable at load time
> > [-Wpedantic]
> >{   (void**) >tst }
> >^
> > 
> > So are they still actually duplicates?
> 
> WAITING on a response to this.

No response; I'm going to close this on the reasoning that the carets show that
they're not actually duplicates.

[Bug c/37200] duplicate warning message with braced initializer list

2018-04-25 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37200

Eric Gallager  changed:

   What|Removed |Added

 Status|NEW |WAITING

--- Comment #3 from Eric Gallager  ---
(In reply to Eric Gallager from comment #2)
> Confirmed that gcc still prints 2 warnings for the testcase. It's necessary
> to set the standard manually to c89 or gnu89 now that GCC defaults to
> -std=gnu11. Now that GCC has carets for its diagnostics, we can see that the
> 2 warnings actually point to different places:
> 
> $ /usr/local/bin/gcc -c -std=gnu89 -pedantic 37200.c
> 37200.c: In function ‘foo’:
> 37200.c:10:11: warning: initializer element is not computable at load time
> [-Wpedantic]
>{   (void**) >tst }
>^
> 37200.c:10:3: warning: initializer element is not computable at load time
> [-Wpedantic]
>{   (void**) >tst }
>^
> 
> So are they still actually duplicates?

WAITING on a response to this.

[Bug c/37200] duplicate warning message with braced initializer list

2017-07-24 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37200

Eric Gallager  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-07-25
 CC||egallager at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Eric Gallager  ---
Confirmed that gcc still prints 2 warnings for the testcase. It's necessary to
set the standard manually to c89 or gnu89 now that GCC defaults to -std=gnu11.
Now that GCC has carets for its diagnostics, we can see that the 2 warnings
actually point to different places:

$ /usr/local/bin/gcc -c -std=gnu89 -pedantic 37200.c
37200.c: In function ‘foo’:
37200.c:10:11: warning: initializer element is not computable at load time
[-Wpedantic]
   {   (void**) >tst }
   ^
37200.c:10:3: warning: initializer element is not computable at load time
[-Wpedantic]
   {   (void**) >tst }
   ^

So are they still actually duplicates?

[Bug c/37200] duplicate warning message with braced initializer list

2008-08-22 Thread manu at gcc dot gnu dot org


--- Comment #1 from manu at gcc dot gnu dot org  2008-08-22 12:22 ---
This old behaviour anyways, at least since 4.1.2


-- 

manu at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to fail||4.1.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37200