public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc at cohi dot at" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/35828] ICE on template-heavy C++ code, reported in innocent source line
Date: Tue, 08 Apr 2008 08:32:00 -0000	[thread overview]
Message-ID: <20080408083151.14641.qmail@sourceware.org> (raw)
In-Reply-To: <bug-35828-6959@http.gcc.gnu.org/bugzilla/>



------- 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


  parent reply	other threads:[~2008-04-08  8:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 21:29 [Bug c++/35828] New: " gcc at cohi dot at
2008-04-04 21:31 ` [Bug c++/35828] " gcc at cohi dot at
2008-04-04 21:44 ` gcc at cohi dot at
2008-04-08  8:32 ` gcc at cohi dot at [this message]
2008-04-08  8:35 ` [Bug c++/35828] ICEs in template-heavy C++0x code gcc at cohi dot at
2008-04-08 10:56 ` gcc at cohi dot at
2008-12-28 22:13 ` [Bug c++/35828] [C++0x] ICE on default template template parameter in template function reichelt at gcc dot gnu dot org
2009-04-20 17:51 ` gcc at abeckmann dot de
2009-04-22 23:55 ` pinskia at gcc dot gnu dot org
2009-07-07 22:04 ` jason at gcc dot gnu dot org
2009-07-07 22:11 ` jason at gcc dot gnu dot org
2009-07-07 22:16 ` jason at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080408083151.14641.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).