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 fortran/30929] New: -pedantic-error produced only warnings and no errors


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


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