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: unassig...@gcc.gnu.org
        ReportedBy: w...@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.

Reply via email to