This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30929] New: -pedantic-error produced only warnings and no errors
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2007 21:19:51 -0000
- Subject: [Bug fortran/30929] New: -pedantic-error produced only warnings and no errors
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Example:
...testsuite/gfortran.dg> gfortran -c -pedantic-errors c_by_val_4.f ; echo $?
c_by_val_4.f:14.22:
CALL DOIT( %VAL( P ) ) ! { dg-warning "Extension: argument list fu
1
Warnung: Extension: argument list function at (1)
c_by_val_4.f:16.22:
CALL DOIT( %VAL( P ) ) ! { dg-warning "Extension: argument list fu
1
Warnung: Extension: argument list function at (1)
0
Expected:
- Non-zero exit code
- "Error:" instead of "Warning:"
Have fun when fixing this as several "dg-do run" tests have -pedantic warnings,
-no-pedantic does not exist, and dg.exp contains:
set DEFAULT_FFLAGS " -pedantic-errors"
--
Summary: -pedantic-error produced only warnings and no errors
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30929