From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17488 invoked by alias); 1 Nov 2007 23:25:34 -0000 Received: (qmail 17380 invoked by uid 48); 1 Nov 2007 23:25:23 -0000 Date: Thu, 01 Nov 2007 23:25:00 -0000 Message-ID: <20071101232523.17379.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug preprocessor/30805] [4.1/4.2 Regression] Internal compiler error when using "x##,##__VA_ARGS__" in macro In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg00094.txt.bz2 ------- Comment #10 from jakub at gcc dot gnu dot org 2007-11-01 23:25 ------- The testcase fails btw: Executing on host: /usr/src/gcc/obj/gcc/xgcc -B/usr/src/gcc/obj/gcc/ /usr/src/gcc/gcc/testsuite/gcc.dg/cpp/pr30805.c -ansi -pedantic-errors -fno-show-column -E -o pr30805.i (timeout = 300) /usr/src/gcc/gcc/testsuite/gcc.dg/cpp/pr30805.c:4: error: anonymous variadic macros were introduced in C99 /usr/src/gcc/gcc/testsuite/gcc.dg/cpp/pr30805.c:5: error: ISO C99 requires rest arguments to be used compiler exited with status 1 output is: /usr/src/gcc/gcc/testsuite/gcc.dg/cpp/pr30805.c:4: error: anonymous variadic macros were introduced in C99 /usr/src/gcc/gcc/testsuite/gcc.dg/cpp/pr30805.c:5: error: ISO C99 requires rest arguments to be used FAIL: gcc.dg/cpp/pr30805.c (test for excess errors) Excess errors: /usr/src/gcc/gcc/testsuite/gcc.dg/cpp/pr30805.c:4: error: anonymous variadic macros were introduced in C99 /usr/src/gcc/gcc/testsuite/gcc.dg/cpp/pr30805.c:5: error: ISO C99 requires rest arguments to be used If I add /* { dg-options "-std=gnu99" } */ (or -std=gnu89 or -std=c99), then it fails with: pr30805.c:6: error: expected identifier or `(' before numeric constant It doesn't ICE in either case (and ICEd with older cc1). Now if the above error message is correct, we should add the dg-options line and dg-error for this error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30805