This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52363] New: Presence/absence of -pedantic compilation affects run-time behavior
- From: "wb at fnal dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2012 18:44:10 +0000
- Subject: [Bug c++/52363] New: Presence/absence of -pedantic compilation affects run-time behavior
- Auto-submitted: auto-generated
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.