From mboxrd@z Thu Jan 1 00:00:00 1970 From: thor@sh-home.de To: gcc-gnats@gcc.gnu.org Subject: c/4139: problem using -V Date: Mon, 27 Aug 2001 08:16:00 -0000 Message-id: <20010827171129.A19365@nubis.osiris.home> X-SW-Source: 2001-08/msg00677.html List-Id: >Number: 4139 >Category: c >Synopsis: gcc -V 2.95.x fails on comments and preprocessor directives >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Mon Aug 27 08:16:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: >Release: 3.0.1 >Organization: >Environment: System: Linux nubis 2.4.9 #1 Tue Aug 21 19:58:29 CEST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../gcc-3.0.1/configure --prefix=/usr --enable-shared +--with-gnu-as --with-gnu-ld --enable-threads --enable-cpp >Description: gcc and g++ output parse erros for every /* or // found in the source. Preprocessor directives will result in 'undefined or invalid # +directive' >How-To-Repeat: /* comment */ int main(){} gcc -V 2.95.3 -o test test.c test.c:1: parse error before `/' ------------------ #include int main(){} gcc -V 2.95.3 -o test test.c test.c:1: undefined or invalid # directive gcc -V 2.95.3 -E -o test.i test.c gcc -V 2.95.3 -o test test.i cc1: Invalid option `-fpreprocessed' >Fix: -- nubis thor@sh-home.de Mommy, what does "Formatting Drive C:" mean? >Release-Note: >Audit-Trail: >Unformatted: