public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52363] New: Presence/absence of -pedantic compilation affects run-time behavior
@ 2012-02-23 18:46 wb at fnal dot gov
  2012-02-23 19:26 ` [Bug c++/52363] " redi at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: wb at fnal dot gov @ 2012-02-23 18:46 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52363
           Summary: Presence/absence of -pedantic compilation affects
                    run-time behavior
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: wb@fnal.gov


Created attachment 26738
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26738
C++11 source program whose behavior differs w/ -pedantic.

The run-time behavior of the attached C++11 program differs according to the
presence or absence of -pedantic during compilation.

MacPorts compiler version: g++-mp-4.7 (GCC) 4.7.0 20120218 (experimental)
System:  MacBook Pro with 2.8GHz Intel Core 2 Duo running OS X 10.6.8
Command line 1:   g++-mp-4.7 -O3 -std=c++0x           pedantic_t.cc
Command line 2:   g++-mp-4.7 -O3 -std=c++0x -pedantic pedantic_t.cc

* Using command line 1, the program builds with no diagnostic and runs to
successful completion.
* Using command line 2, the program builds with no diagnostic, but the
assertion fails during execution.

The principal concern is the inconsistent run-time behavior.


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

end of thread, other threads:[~2012-06-08  0:48 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 18:46 [Bug c++/52363] New: Presence/absence of -pedantic compilation affects run-time behavior wb at fnal dot gov
2012-02-23 19:26 ` [Bug c++/52363] " redi at gcc dot gnu.org
2012-04-18 11:05 ` paolo.carlini at oracle dot com
2012-04-18 12:53 ` paolo.carlini at oracle dot com
2012-04-18 13:28 ` paolo.carlini at oracle dot com
2012-04-18 13:59 ` paolo.carlini at oracle dot com
2012-04-18 14:11 ` paolo.carlini at oracle dot com
2012-04-18 14:18 ` paolo.carlini at oracle dot com
2012-04-18 14:45 ` daniel.kruegler at googlemail dot com
2012-04-18 14:59 ` paolo.carlini at oracle dot com
2012-04-18 15:16 ` jason at gcc dot gnu.org
2012-04-18 15:23 ` paolo.carlini at oracle dot com
2012-04-24 16:26 ` paolo at gcc dot gnu.org
2012-04-24 16:28 ` paolo.carlini at oracle dot com
2012-06-08  0:48 ` paolo.carlini at oracle dot com

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).