From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6147 invoked by alias); 22 Aug 2006 09:40:16 -0000 Received: (qmail 6068 invoked by uid 48); 22 Aug 2006 09:40:03 -0000 Date: Tue, 22 Aug 2006 09:40:00 -0000 Subject: [Bug c/28800] New: Incorrect warning "ISO C forbids an empty source file" X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "vincent at vinc17 dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-08/txt/msg01811.txt.bz2 List-Id: 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