public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53661] New: Wrong narrowing conversion warning with -std=c++11
@ 2012-06-13 20:42 tmsriram at google dot com
  2012-08-07 22:34 ` [Bug c++/53661] [gcc-4.7/4.8 regression] " tmsriram at google dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: tmsriram at google dot com @ 2012-06-13 20:42 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53661
           Summary: Wrong narrowing conversion warning with -std=c++11
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tmsriram@google.com


test.cc

enum Code {
  SUCCESS = 0
};

Code a;

int r[] = {a};

$ g++ test.cc -c -std=c++11
test.cc:7:13:warning: narrowing conversion of ‘a’ from ‘Code’ to ‘int’ inside {
} [-Wnarrowing]
 int r[] = {a};


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-09-17 16:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 20:42 [Bug c/53661] New: Wrong narrowing conversion warning with -std=c++11 tmsriram at google dot com
2012-08-07 22:34 ` [Bug c++/53661] [gcc-4.7/4.8 regression] " tmsriram at google dot com
2012-09-13 23:40 ` paolo.carlini at oracle dot com
2012-09-13 23:43 ` paolo.carlini at oracle dot com
2012-09-14  6:05 ` manu at gcc dot gnu.org
2012-09-14  9:37 ` paolo.carlini at oracle dot com
2012-09-14 13:46 ` jason at gcc dot gnu.org
2012-09-14 13:49 ` paolo.carlini at oracle dot com
2012-09-14 14:07 ` manu at gcc dot gnu.org
2012-09-14 16:28 ` harald at gigawatt dot nl
2012-09-17 15:42 ` jason at gcc dot gnu.org
2012-09-17 16:06 ` jason at gcc dot gnu.org
2012-09-17 16:25 ` harald at gigawatt dot nl
2012-09-17 16:42 ` jason at gcc dot gnu.org
2012-09-17 16:42 ` jason at gcc dot gnu.org
2012-09-17 16:43 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).