https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #14 from Jonathan Wakely ---
I think PR 61489 changed the behaviour for GCC 5.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
Nico nico.schloemer at gmail dot com changed:
What|Removed |Added
CC||nico.schloemer at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #12 from nightstrike nightstrike at gmail dot com ---
(In reply to Daniel Sommermann from comment #11)
Created attachment 33627 [details]
Test case showing overly strict warning
This still produces false positives in C++11.
I
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
Daniel Sommermann dcsommer at fb dot com changed:
What|Removed |Added
CC||dcsommer at fb
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #9 from Alexander Monakov amonakov at gcc dot gnu.org ---
My statement about zero-initialization was inaccurate (thanks), but the general
point still stands: in C you have to write ' = {0}' since empty-braces
initializer is not
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #10 from nightstrike nightstrike at gmail dot com ---
So should I open a new PR for not warning in C++? Because even the = {0}
case warns there.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
nightstrike nightstrike at gmail dot com changed:
What|Removed |Added
CC||nightstrike at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #7 from Alexander Monakov amonakov at gcc dot gnu.org ---
Nightstrike, is there a particular reason you want C++ warning behavior be
adjusted? Note that unlike C, in C++ you get zero-initialization by default,
so you don't need to
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #8 from nightstrike nightstrike at gmail dot com ---
Are you sure C++ works like that? I thought that member variables in a struct
would get default initialized to indeterminate values, as seen here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
Jackie Rosen jackie.rosen at hushmail dot com changed:
What|Removed |Added
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #3 from Alexander Monakov amonakov at gcc dot gnu.org 2011-04-22
11:53:05 UTC ---
Author: amonakov
Date: Fri Apr 22 11:53:01 2011
New Revision: 172857
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=172857
Log:
PR c/36750
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
Alexander Monakov amonakov at gcc dot gnu.org changed:
What|Removed |Added
Status|NEW |RESOLVED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
--- Comment #1 from Pádraig Brady P at draigBrady dot com 2010-11-24 12:09:33
UTC ---
A related thread: http://gcc.gnu.org/ml/gcc-bugs/1998-07/msg00031.html
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
Keywords||diagnostic
14 matches
Mail list logo