[Bug c/28800] New: Incorrect warning "ISO C forbids an empty source file"

vincent at vinc17 dot org gcc-bugzilla@gcc.gnu.org
Tue Aug 22 09:40:00 GMT 2006


I get the following warning:

dixsept:~> cat > tst.c
#define FOO
dixsept:~> gcc -pedantic -c tst.c
tst.c:1: warning: ISO C forbids an empty source file

But the source isn't empty (and AFAIK, the ISO C doesn't forbid empty sources).
Perhaps gcc mixes up with a translation unit, in which case the wording should
be changed.


-- 
           Summary: Incorrect warning "ISO C forbids an empty source file"
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vincent at vinc17 dot org


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



More information about the Gcc-bugs mailing list