From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14040 invoked by alias); 15 Feb 2007 13:15:31 -0000 Received: (qmail 13886 invoked by uid 48); 15 Feb 2007 13:15:17 -0000 Date: Thu, 15 Feb 2007 13:15:00 -0000 Subject: [Bug preprocessor/30805] New: Internal compiler error when using "x##,##__VA_ARGS__" in macro X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "johandefries at gmail dot com" 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-02/txt/msg01806.txt.bz2 The 2-line source that triggers the error: #define A(x,...) x##,##__VA_ARGS__ A(1) Error message: a.c:6: internal compiler error: Geannuleerd Please submit a full bug report The source file is from: http://www.kernel.org/git/?p=linux/kernel/git/josh/sparse.git;a=blob;f=validation/preprocessor13.c;hb=0.2 My system: Linux Knoppix 2.6.19 #7 SMP PREEMPT Sun Dec 17 22:01:07 CET 2006 i686 GNU/Linux The bug is triggerd by al 4 compilers on my system. gcc-3.3 (GCC) 3.3.6 (Debian 1:3.3.6-13) gcc-3.4 (GCC) 3.4.6 (Debian 3.4.6-4) gcc-4.0 (GCC) 4.0.4 20060904 (prerelease) (Debian 4.0.3-7) gcc-4.1 (GCC) 4.1.2 20061028 (prerelease) (Debian 4.1.1-19) -- Summary: Internal compiler error when using "x##,##__VA_ARGS__" in macro Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: johandefries at gmail dot com GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30805