This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Fix 21903


>>>>> "Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:

Nathan> this patch fixes 21903, a regression with default arguments and
Nathan> template instantiations.  We can instantiate nested template class
Nathan> before we've done the late parsing for default arguments.  When we
Nathan> parse the default arguments we should propagate that information to
Nathan> the instantiations.

I am not sure that this patch causes the failure that I am seeing,
but as the failure occurs in cp_parser_late_parsing_default_args, it
seems like a likely suspect.

The failure occurs building libjava on x86 FC2, see appended.

Tom


/home/tromey/gnu/Trunk/build/./gcc/xgcc -shared-libgcc -B/home/tromey/gnu/Trunk/build/./gcc/ -nostdinc++ -L/home/tromey/gnu/Trunk/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home/tromey/gnu/Trunk/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home/tromey/gnu/Trunk/install/i686-pc-linux-gnu/bin/ -B/home/tromey/gnu/Trunk/install/i686-pc-linux-gnu/lib/ -isystem /home/tromey/gnu/Trunk/install/i686-pc-linux-gnu/include -isystem /home/tromey/gnu/Trunk/install/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc/libjava -I./include -I./gcj -I../../../gcc/libjava -Iinclude -I../../../gcc/libjava/include -I../../../gcc/libjava/../boehm-gc/include -I../boehm-gc/include -I../../../gcc/libjava/libltdl -I../../../gcc/libjava/libltdl -I../../../gcc/libjava/.././libjava/../gcc -I../../../gcc/libjava/../zlib -I../../../gcc/libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -D_FILE_OFFSET_BITS=64 -ffloat-store -I
 /usr/X11R6/include -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/home/tromey/gnu/Trunk/install\" -DLIBDIR=\"/home/tromey/gnu/Trunk/install/lib\" -DJAVA_HOME=\"/home/tromey/gnu/Trunk/install\" -DBOOT_CLASS_PATH=\"/home/tromey/gnu/Trunk/install/share/java/libgcj-4.1.0.jar\" -DJAVA_EXT_DIRS=\"/home/tromey/gnu/Trunk/install/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/home/tromey/gnu/Trunk/install/share/java/gcj-endorsed\" -DLIBGCJ_DEFAULT_DATABASE=\"/home/tromey/gnu/Trunk/install/lib/gcj-4.1.0/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.1.0/classmap.db\" -DTOOLEXECLIBDIR=\"/home/tromey/gnu/Trunk/install/lib\" -g -D_GNU_SOURCE -MT prims.lo -MD -MP -MF .deps/prims.Tpo -c ../../../gcc/libjava/prims.cc  -fPIC -DPIC -o .libs/prims.o
../../../gcc/libjava/java/lang/Class.h:574: internal compiler error: in cp_parser_late_parsing_default_args, at cp/parser.c:15602
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]