This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10065: -pedantic has strange side effects; what is accepted in -std=c++98
- From: bangerth at dealii dot org
- To: arthur dot baldwin at gd-ais dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 22 Mar 2003 04:22:53 -0000
- Subject: Re: c++/10065: -pedantic has strange side effects; what is accepted in -std=c++98
- Reply-to: bangerth at dealii dot org, arthur dot baldwin at gd-ais dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: gcc/g++ issues error instead of warning on non-ISO array assignment.
New Synopsis: -pedantic has strange side effects; what is accepted in -std=c++98
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Sat Mar 22 04:22:53 2003
State-Changed-Why:
Confirmed, kind of. First thing of course is that
-pedantic converts errors into warnings. This has been
shown in other PRs previously.
That gcc doesn't allow array copies any more is a
feature -- i.e., it is an extension of earlier versions
that was abandoned.
The thing with variably sized arrays: I think this is in
deferrence to C99. However, it is also accepted by g++
with -std=c++98, which I think is wrong.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10065