This is the mail archive of the gcc-bugs@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]

[Bug c++/35828] ICE on template-heavy C++ code, reported in innocent source line



------- 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<pegtl::type_list<scheme::nested_comment>,
scheme::comment_text>':
./rules_generic.hh:199:   instantiated from 'const size_t
pegtl::seq_min_impl2<false, pegtl::type_list<>, scheme::nested_comment,
scheme::comment_text>::min'
./rules_generic.hh:211:   instantiated from 'const size_t
pegtl::seq_min_impl1<pegtl::type_list<scheme::nested_comment>,
scheme::comment_text>::min'
./rules_generic.hh:223:   instantiated from 'const size_t
pegtl::seq<scheme::nested_comment, scheme::comment_text>::min'
./rules_generic.hh:104:   instantiated from 'pegtl::star<scheme::comment_cont>'
./parse_debugger.hh:214:   instantiated from 'bool
pegtl::trace_debug::match(Input&, Class&& ...) [with Rule =
pegtl::star<scheme::comment_cont>, Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:242:   instantiated from 'static bool pegtl::seq<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
pegtl::star<scheme::comment_cont>, Rules = pegtl::string<124, 35>]'
./rules_generic.hh:242:   instantiated from 'static bool pegtl::seq<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
scheme::comment_text, Rules = pegtl::star<scheme::comment_cont>,
pegtl::string<124, 35>]'
./parse_debugger.hh:214:   instantiated from 'bool
pegtl::trace_debug::match(Input&, Class&& ...) [with Rule =
pegtl::seq<scheme::comment_text, pegtl::star<scheme::comment_cont>,
pegtl::string<124, 35> >, Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:242:   instantiated from 'static bool pegtl::seq<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
pegtl::seq<scheme::comment_text, pegtl::star<scheme::comment_cont>,
pegtl::string<124, 35> >, Rules = ]'
./rules_generic.hh:242:   instantiated from 'static bool pegtl::seq<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
pegtl::string<35, 124>, Rules = pegtl::seq<scheme::comment_text,
pegtl::star<scheme::comment_cont>, 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<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:183:   instantiated from 'static bool pegtl::sor<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
scheme::nested_comment, Rules = pegtl::seq<pegtl::string<35, 59>,
scheme::interlexeme_space, scheme::datum>, pegtl::string<35, 33, 114, 54, 114,
115>]'
./rules_generic.hh:183:   instantiated from 'static bool pegtl::sor<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
pegtl::seq<pegtl::one<59>, pegtl::until_eol>, Rules = scheme::nested_comment,
pegtl::seq<pegtl::string<35, 59>, 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<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:183:   instantiated from 'static bool pegtl::sor<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
scheme::comment, Rules = ]'
./rules_generic.hh:183:   instantiated from 'static bool pegtl::sor<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
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<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:124:   instantiated from 'static bool
pegtl::star<Rule>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
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<scheme::interlexeme_space>, Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:242:   instantiated from 'static bool pegtl::seq<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Debug = pegtl::trace_debug, Class = , Rule =
pegtl::star<scheme::interlexeme_space>, Rules =
pegtl::seq<pegtl::seq<pegtl::one<35>, pegtl::list<116, 84, 102, 70> >,
pegtl::at<scheme::delimiter> >, pegtl::star<scheme::interlexeme_space>]'
./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<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:183:   instantiated from 'static bool pegtl::sor<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
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<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
pegtl::ascii_location>, Class = ]'
./rules_generic.hh:183:   instantiated from 'static bool pegtl::sor<Rule, Rules
...>::s_match(Input&, Debug&, Class&& ...) [with Input =
pegtl::iterator_input<__gnu_cxx::__normal_iterator<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
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<const
char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >
>, 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<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
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<const char*,
std::basic_string<char, std::char_traits<char>, std::allocator<char> > >,
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 <http://gcc.gnu.org/bugs.html> for instructions.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35828


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