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

Reply via email to