This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12479] [3.4 only] System header should not cause -pedantic to error about "extra `;'"


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-12-22 08:18 -------
Zack is correct that G++ mishandles -pedantic.  It's current behavior (with the
additional complication of -fpermissive) is neither necessary nor concistent
with the C front end.  

The current situation is a way of avoiding having to go through and analyze
every "pedwarn" in G++ to decide whether to make it into:

  if (pedantic) pedwarn (...)

or:

  error (...)

At this point, it would probably just make sense to deprecate -fpermissive, and
make all uses of "pedwarn" in the C++ front end that are not guarded by "if
(pedantic)" into "error" calls.

Meanwhile, I will make the particular pedwarn in question conditional on
!in_system_header, which makes sense anyhow.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]