* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
@ 2012-06-06 16:52 ` redi at gcc dot gnu.org
2012-06-06 16:56 ` redi at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-06 16:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Summary|[C++11Spurious |[C++11] Spurious
|-Wuninitialized warning for |-Wuninitialized warning for
|member with NSDMI |member with NSDMI
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-06 16:52:00 UTC ---
$ g++-4.7 -std=c++11 c.cc -c -Wuninitialized -c
c.cc: In instantiation of 'class Range<int, 0>':
c.cc:7:15: required from here
c.cc:4:19: warning: non-static const member 'const int Range<int, 0>::min' in
class without a constructor [-Wuninitialized]
The test in class.c:check_bases_and_members doesn't appear to look for NSDMIs
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
2012-06-06 16:52 ` [Bug c++/53594] [C++11] Spurious " redi at gcc dot gnu.org
@ 2012-06-06 16:56 ` redi at gcc dot gnu.org
2012-06-11 7:58 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-06-06 16:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-06 16:56:12 UTC ---
Reduced:
class Range
{
const int min = 1;
};
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
2012-06-06 16:52 ` [Bug c++/53594] [C++11] Spurious " redi at gcc dot gnu.org
2012-06-06 16:56 ` redi at gcc dot gnu.org
@ 2012-06-11 7:58 ` pinskia at gcc dot gnu.org
2012-06-11 7:59 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-06-11 7:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vincenzo.innocente at cern
| |dot ch
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-06-11 07:57:31 UTC ---
*** Bug 53629 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
` (2 preceding siblings ...)
2012-06-11 7:58 ` pinskia at gcc dot gnu.org
@ 2012-06-11 7:59 ` pinskia at gcc dot gnu.org
2012-06-11 8:58 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-06-11 7:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-06-11
Ever Confirmed|0 |1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-06-11 07:59:02 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
` (3 preceding siblings ...)
2012-06-11 7:59 ` pinskia at gcc dot gnu.org
@ 2012-06-11 8:58 ` jakub at gcc dot gnu.org
2012-06-11 9:29 ` vincenzo.innocente at cern dot ch
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-06-11 8:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-11 08:57:57 UTC ---
Created attachment 27602
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27602
gcc48-pr53594.patch
Untested fix.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
` (4 preceding siblings ...)
2012-06-11 8:58 ` jakub at gcc dot gnu.org
@ 2012-06-11 9:29 ` vincenzo.innocente at cern dot ch
2012-06-25 6:48 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: vincenzo.innocente at cern dot ch @ 2012-06-11 9:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
--- Comment #6 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-06-11 09:28:49 UTC ---
the patch compiles and fixes my test case,
I've not tested any possible side effects
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
` (5 preceding siblings ...)
2012-06-11 9:29 ` vincenzo.innocente at cern dot ch
@ 2012-06-25 6:48 ` jakub at gcc dot gnu.org
2012-06-25 6:55 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-06-25 6:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-25 06:48:09 UTC ---
Author: jakub
Date: Mon Jun 25 06:48:04 2012
New Revision: 188925
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188925
Log:
PR c++/53594
* class.c (check_bases_and_members): Avoid -Wuninitialized
diagnostics for non-static const members or references if they
use NSDMI.
* g++.dg/cpp0x/nsdmi7.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/class.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
` (6 preceding siblings ...)
2012-06-25 6:48 ` jakub at gcc dot gnu.org
@ 2012-06-25 6:55 ` jakub at gcc dot gnu.org
2012-06-25 6:55 ` jakub at gcc dot gnu.org
2012-06-25 6:58 ` jakub at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-06-25 6:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-25 06:54:12 UTC ---
Author: jakub
Date: Mon Jun 25 06:54:08 2012
New Revision: 188926
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188926
Log:
PR c++/53594
* class.c (check_bases_and_members): Avoid -Wuninitialized
diagnostics for non-static const members or references if they
use NSDMI.
* g++.dg/cpp0x/nsdmi7.C: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/nsdmi7.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/class.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-25 06:55:09 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
` (7 preceding siblings ...)
2012-06-25 6:55 ` jakub at gcc dot gnu.org
@ 2012-06-25 6:55 ` jakub at gcc dot gnu.org
2012-06-25 6:58 ` jakub at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-06-25 6:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-25 06:54:12 UTC ---
Author: jakub
Date: Mon Jun 25 06:54:08 2012
New Revision: 188926
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188926
Log:
PR c++/53594
* class.c (check_bases_and_members): Avoid -Wuninitialized
diagnostics for non-static const members or references if they
use NSDMI.
* g++.dg/cpp0x/nsdmi7.C: New test.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/cpp0x/nsdmi7.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/class.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/53594] [C++11] Spurious -Wuninitialized warning for member with NSDMI
2012-06-06 16:50 [Bug c++/53594] New: [C++11Spurious -Wuninitialized warning for member with NSDMI redi at gcc dot gnu.org
` (8 preceding siblings ...)
2012-06-25 6:55 ` jakub at gcc dot gnu.org
@ 2012-06-25 6:58 ` jakub at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-06-25 6:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53594
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-06-25 06:55:09 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 11+ messages in thread