public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58170] [4.7/4.8/4.9 Regression] [c++11] Crash when aliasing a template class that is a member of its template base class.
Date: Sat, 15 Feb 2014 02:36:00 -0000	[thread overview]
Message-ID: <bug-58170-4-474LwQ2hwZ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58170-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Stack trace on trunk:

bug.cc: In substitution of 'template<class T, class U, class V> using B = A<
<template-parameter-1-1>, <template-parameter-1-2> >::B<V> [with T = T; U =
char; V = bool]':
bug.cc:10:18:   required from here
bug.cc:6:70: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have template_decl in lookup_template_class_1,
at cp/pt.c:7674
 template <typename T, typename U, typename V> using B = A<T, U>::B<V>;
                                                                      ^
0xdbfc54 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/gcc/tree.c:9192
0x5bc4c9 tree_check3(tree_node*, char const*, int, char const*, tree_code,
tree_code, tree_code)
        ../../gcc/gcc/tree.h:2749
0x62520c lookup_template_class_1
        ../../gcc/gcc/cp/pt.c:7674
0x62520c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ../../gcc/gcc/cp/pt.c:7725
0x6296d3 tsubst_aggr_type
        ../../gcc/gcc/cp/pt.c:10031
0x61ba51 tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/gcc/cp/pt.c:11436
0x62dbee tsubst_decl
        ../../gcc/gcc/cp/pt.c:10908
0x61beff tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/gcc/cp/pt.c:11357
0x632e4d instantiate_template_1
        ../../gcc/gcc/cp/pt.c:15325
0x632e4d instantiate_template(tree_node*, tree_node*, int)
        ../../gcc/gcc/cp/pt.c:15375
0x61c02d instantiate_alias_template
        ../../gcc/gcc/cp/pt.c:15405
0x61c02d tsubst(tree_node*, tree_node*, int, tree_node*)
        ../../gcc/gcc/cp/pt.c:11384
0x62435f lookup_template_class_1
        ../../gcc/gcc/cp/pt.c:7499
0x62435f lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ../../gcc/gcc/cp/pt.c:7725
0x72dcc2 finish_template_type(tree_node*, tree_node*, int)
        ../../gcc/gcc/cp/semantics.c:2953
0x6c2078 cp_parser_template_id
        ../../gcc/gcc/cp/parser.c:13440
0x6c2398 cp_parser_class_name
        ../../gcc/gcc/cp/parser.c:19074
0x6b3bc9 cp_parser_qualifying_entity
        ../../gcc/gcc/cp/parser.c:5524
0x6b3bc9 cp_parser_nested_name_specifier_opt
        ../../gcc/gcc/cp/parser.c:5249
0x6cba77 cp_parser_simple_type_specifier
        ../../gcc/gcc/cp/parser.c:14638
Please submit a full bug report, [etc.]


  parent reply	other threads:[~2014-02-15  2:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15 19:38 [Bug c++/58170] New: " cassio.neri at gmail dot com
2014-02-15  2:33 ` [Bug c++/58170] [4.7/4.8/4.9 Regression] [c++11] " reichelt at gcc dot gnu.org
2014-02-15  2:36 ` reichelt at gcc dot gnu.org [this message]
2014-02-21 21:00 ` jason at gcc dot gnu.org
2014-02-22  5:50 ` jason at gcc dot gnu.org
2014-02-22  5:57 ` [Bug c++/58170] [4.7/4.8 " jason at gcc dot gnu.org
2014-06-12 13:41 ` rguenth at gcc dot gnu.org
2014-12-10 12:45 ` [Bug c++/58170] [4.8 " rguenth at gcc dot gnu.org
2014-12-19 13:24 ` jakub at gcc dot gnu.org
2015-01-13 17:24 ` paolo.carlini at oracle dot com

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-58170-4-474LwQ2hwZ@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).