------- Comment #1 from kulhanek dot 5 at wright dot edu 2008-04-07 19:29 ------- (oops, hit enter on the wrong screen)
Error message: In file included from test.h:2: test.def:2:2: warning: embedding a directive within macro arguments is not portable In file included from /usr/include/features.h:308, from /usr/include/ctype.h:27, from test.def:2, from test.h:2: g @/inc8 :8404883:10: <built-in>:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. make: *** [test] Error 1 Build command: gcc --std=c99 -pedantic -E -P -x c test.h An internal compiler error is still reported if -pedantic is removed, but it no longer specifically mentions a segfault. Source files: -----test.h----------------------------------- #define FOO(defs) /* ignored here */ #include "test.def" ---------------------------------------------- -----test.def--------------------------------- FOO( #include <ctype.h> ) ---------------------------------------------- As with removing -pedantic from the build command, combining the two files into one still yields the error, but only when one is #included is the segfault reported. gcc version: Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=pentium4 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5) ----------------------------------------------- The fact that it's failing to compile is of course the fault of my code. But since it's segfaulting instead of just returning an error message, I thought I'd report it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35859