This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/10032: -pedantic converts some errors to warnings
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mvl at exedo dot nl, nobody at gcc dot gnu dot org
- Date: 22 Mar 2003 03:59:46 -0000
- Subject: Re: c++/10032: -pedantic converts some errors to warnings
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mvl at exedo dot nl, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: -pedantic gives a warning when goto jumps over an initalization, but then dies
New Synopsis: -pedantic converts some errors to warnings
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Sat Mar 22 03:59:46 2003
State-Changed-Why:
Confirmed -- i.e., somehow. The behavior of 3.3 and 3.4 is
different, but still confusing: -pedantic converts some
errors to warnings, and I really thing that the following
doesn't make much sense:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
x.cc: In function `int main()':
x.cc:6: error: jump to label `label'
x.cc:2: error: from here
x.cc:4: error: crosses initialization of `int temp'
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c -pedantic x.cc
x.cc: In function `int main()':
x.cc:6: warning: jump to label `label'
x.cc:2: warning: from here
x.cc:4: error: crosses initialization of `int temp'
g/x> echo $?
1
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10032