public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "markus at trippelsdorf dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/55337] New: [4.8 Regression] ICE tree check: expected sizeof_expr, have alignof_expr in cp_tree_equal, at cp/tree.c:2608
Date: Thu, 15 Nov 2012 09:43:00 -0000	[thread overview]
Message-ID: <bug-55337-4@http.gcc.gnu.org/bugzilla/> (raw)


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

             Bug #: 55337
           Summary: [4.8 Regression] ICE tree check: expected sizeof_expr,
                    have alignof_expr in cp_tree_equal, at cp/tree.c:2608
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


markus@x4 tmp % cat test.ii
template<int> struct A;
template<typename Type> struct B
{
  static A<__alignof__(Type)> b;
};
template<typename Type> A<__alignof__(Type)> B<Type>::b;

markus@x4 tmp % c++ -c test.ii
test.ii:6:44: internal compiler error: tree check: expected sizeof_expr, have
alignof_expr in cp_tree_equal, at cp/tree.c:2613
 template<typename Type> A<__alignof__(Type)> B<Type>::b;
                                            ^
0xc3d0da tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /home/markus/gcc/gcc/tree.c:8954
0x674dde tree_check
        /home/markus/gcc/gcc/tree.h:3686
0x674dde cp_tree_equal(tree_node*, tree_node*)
        /home/markus/gcc/gcc/cp/tree.c:2613
0x521b54 template_args_equal
        /home/markus/gcc/gcc/cp/pt.c:6797
0x52211d comp_template_args_with_info
        /home/markus/gcc/gcc/cp/pt.c:6824
0x522204 comp_template_args
        /home/markus/gcc/gcc/cp/pt.c:6842
0x522204 eq_specializations
        /home/markus/gcc/gcc/cp/pt.c:1471
0xf77c7c htab_find_with_hash
        /home/markus/gcc/libiberty/hashtab.c:606
0x55aa38 lookup_template_class_1
        /home/markus/gcc/gcc/cp/pt.c:7252
0x55aa38 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        /home/markus/gcc/gcc/cp/pt.c:7522
0x64d212 finish_template_type(tree_node*, tree_node*, int)
        /home/markus/gcc/gcc/cp/semantics.c:2794
0x5e6c28 cp_parser_template_id
        /home/markus/gcc/gcc/cp/parser.c:12705
0x5e6ff6 cp_parser_class_name
        /home/markus/gcc/gcc/cp/parser.c:18089
0x5dc0db cp_parser_qualifying_entity
        /home/markus/gcc/gcc/cp/parser.c:5264
0x5dc0db cp_parser_nested_name_specifier_opt
        /home/markus/gcc/gcc/cp/parser.c:4995
0x5e7a07 cp_parser_constructor_declarator_p
        /home/markus/gcc/gcc/cp/parser.c:21391
0x5e7a07 cp_parser_decl_specifier_seq
        /home/markus/gcc/gcc/cp/parser.c:10878
0x5eb907 cp_parser_single_declaration
        /home/markus/gcc/gcc/cp/parser.c:21876
0x5ee786 cp_parser_template_declaration_after_export
        /home/markus/gcc/gcc/cp/parser.c:21761
0x5f6899 cp_parser_declaration
        /home/markus/gcc/gcc/cp/parser.c:10302
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


             reply	other threads:[~2012-11-15  9:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-15  9:43 markus at trippelsdorf dot de [this message]
2012-11-15 10:03 ` [Bug c++/55337] " jakub at gcc dot gnu.org
2012-11-15 10:04 ` jakub at gcc dot gnu.org
2012-11-16 14:34 ` jakub at gcc dot gnu.org
2012-11-16 14:36 ` jakub at gcc dot gnu.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=bug-55337-4@http.gcc.gnu.org/bugzilla/ \
    --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).