From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15095 invoked by alias); 8 Apr 2008 08:32:46 -0000 Received: (qmail 14642 invoked by uid 48); 8 Apr 2008 08:31:51 -0000 Date: Tue, 08 Apr 2008 08:32:00 -0000 Message-ID: <20080408083151.14641.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/35828] ICE on template-heavy C++ code, reported in innocent source line In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "gcc at cohi dot at" 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: 2008-04/txt/msg00591.txt.bz2 ------- Comment #3 from gcc at cohi dot at 2008-04-08 08:31 ------- Created an attachment (id=15445) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15445&action=view) Here's the preprocessed source for a similar bug that might be related. > g++-mp-4.3 -save-temps -I. -std=gnu++0x -D_REENTRANT -pipe -g -O3 -Wall -Wextra -Wimplicit -Wconversion -Wcast-align -Woverloaded-virtual -Wold-style-cast -Wformat=2 -Wswitch-enum -Wswitch-default -Wredundant-decls -fno-enforce-eh-specs -fno-strict-overflow -lpthread scheme.cc -o scheme g++-mp-4.3: warning: -pipe ignored because -save-temps specified ./rules_generic.hh: In instantiation of 'pegtl::seq_min_impl1, scheme::comment_text>': ./rules_generic.hh:199: instantiated from 'const size_t pegtl::seq_min_impl2, scheme::nested_comment, scheme::comment_text>::min' ./rules_generic.hh:211: instantiated from 'const size_t pegtl::seq_min_impl1, scheme::comment_text>::min' ./rules_generic.hh:223: instantiated from 'const size_t pegtl::seq::min' ./rules_generic.hh:104: instantiated from 'pegtl::star' ./parse_debugger.hh:214: instantiated from 'bool pegtl::trace_debug::match(Input&, Class&& ...) [with Rule = pegtl::star, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:242: instantiated from 'static bool pegtl::seq::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = pegtl::star, Rules = pegtl::string<124, 35>]' ./rules_generic.hh:242: instantiated from 'static bool pegtl::seq::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = scheme::comment_text, Rules = pegtl::star, pegtl::string<124, 35>]' ./parse_debugger.hh:214: instantiated from 'bool pegtl::trace_debug::match(Input&, Class&& ...) [with Rule = pegtl::seq, pegtl::string<124, 35> >, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:242: instantiated from 'static bool pegtl::seq::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = pegtl::seq, pegtl::string<124, 35> >, Rules = ]' ./rules_generic.hh:242: instantiated from 'static bool pegtl::seq::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = pegtl::string<35, 124>, Rules = pegtl::seq, pegtl::string<124, 35> >]' ./parse_debugger.hh:227: instantiated from 'bool pegtl::trace_debug::match(bool, Input&, Class&& ...) [with Rule = scheme::nested_comment, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:183: instantiated from 'static bool pegtl::sor::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = scheme::nested_comment, Rules = pegtl::seq, scheme::interlexeme_space, scheme::datum>, pegtl::string<35, 33, 114, 54, 114, 115>]' ./rules_generic.hh:183: instantiated from 'static bool pegtl::sor::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = pegtl::seq, pegtl::until_eol>, Rules = scheme::nested_comment, pegtl::seq, scheme::interlexeme_space, scheme::datum>, pegtl::string<35, 33, 114, 54, 114, 115>]' ./parse_debugger.hh:227: instantiated from 'bool pegtl::trace_debug::match(bool, Input&, Class&& ...) [with Rule = scheme::comment, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:183: instantiated from 'static bool pegtl::sor::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = scheme::comment, Rules = ]' ./rules_generic.hh:183: instantiated from 'static bool pegtl::sor::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = scheme::whitespace, Rules = scheme::comment]' ./parse_debugger.hh:227: instantiated from 'bool pegtl::trace_debug::match(bool, Input&, Class&& ...) [with Rule = scheme::interlexeme_space, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:124: instantiated from 'static bool pegtl::star::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = scheme::interlexeme_space]' ./parse_debugger.hh:214: instantiated from 'bool pegtl::trace_debug::match(Input&, Class&& ...) [with Rule = pegtl::star, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:242: instantiated from 'static bool pegtl::seq::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = pegtl::star, Rules = pegtl::seq, pegtl::list<116, 84, 102, 70> >, pegtl::at >, pegtl::star]' ./parse_debugger.hh:227: instantiated from 'bool pegtl::trace_debug::match(bool, Input&, Class&& ...) [with Rule = scheme::boolean, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:183: instantiated from 'static bool pegtl::sor::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = scheme::boolean, Rules = scheme::number, scheme::character, scheme::string, scheme::symbol]' ./parse_debugger.hh:227: instantiated from 'bool pegtl::trace_debug::match(bool, Input&, Class&& ...) [with Rule = scheme::lexeme_datum, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./rules_generic.hh:183: instantiated from 'static bool pegtl::sor::s_match(Input&, Debug&, Class&& ...) [with Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule = scheme::lexeme_datum, Rules = scheme::compound_datum]' ./parse_debugger.hh:227: instantiated from 'bool pegtl::trace_debug::match(bool, Input&, Class&& ...) [with Rule = scheme::datum, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./parse_generic.hh:18: instantiated from 'bool pegtl::parse(Input&, Debug&, Class&& ...) [with TopRule = scheme::datum, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = ]' ./parse_generic.hh:46: instantiated from 'bool pegtl::trace_parse(bool, Input&, Class&& ...) [with TopRule = scheme::datum, Input = pegtl::iterator_input<__gnu_cxx::__normal_iterator, std::allocator > >, pegtl::ascii_location>, Class = ]' ./parse_string.hh:47: instantiated from 'bool pegtl::trace_parse_file(bool, const std::string&, Class&& ...) [with TopRule = scheme::datum, Location = pegtl::ascii_location, Class = ]' scheme.cc:295: instantiated from here ./rules_generic.hh:211: internal compiler error: in finish_member_declaration, at cp/semantics.c:2319 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35828