public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "alserkli at inbox dot ru" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65390] New: ICE in strip_typedefs, at cp/tree.c:1361
Date: Wed, 11 Mar 2015 15:37:00 -0000	[thread overview]
Message-ID: <bug-65390-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65390

            Bug ID: 65390
           Summary: ICE in strip_typedefs, at cp/tree.c:1361
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alserkli at inbox dot ru

Created attachment 35013
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35013&action=edit
preprocessed source

g++ (GCC) 5.0.0 20150311 (experimental)

=== e.cc ===
#include <memory>
auto f(int n){
  return std::make_shared<int[n]>();
}
===

$ g++ -std=c++14 e.cc
In file included from /opt/include/c++/5.0.0/memory:82:0,
                 from e.cc:1:
/opt/include/c++/5.0.0/bits/shared_ptr.h: In substitution of 'template<class
_Tp, class ... _Args> std::shared_ptr<_Tp1> std::make_shared(_Args&& ...) [with
_Tp = int [n]; _Args = {}]':
e.cc:3:35:   required from here
/opt/include/c++/5.0.0/bits/shared_ptr.h:626:5: internal compiler error: in
strip_typedefs, at cp/tree.c:1361
     make_shared(_Args&&... __args)
     ^
0x7bbc4d strip_typedefs(tree_node*)
    /gcc/gcc/cp/tree.c:1361
0x6534d2 canonicalize_type_argument
    /gcc/gcc/cp/pt.c:6500
0x67f7fa coerce_template_parms
    /gcc/gcc/cp/pt.c:7171
0x681789 lookup_template_class_1
    /gcc/gcc/cp/pt.c:7780
0x681789 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
    /gcc/gcc/cp/pt.c:8096
0x684cd8 tsubst_aggr_type
    /gcc/gcc/cp/pt.c:10460
0x67704b tsubst(tree_node*, tree_node*, int, tree_node*)
    /gcc/gcc/cp/pt.c:11909
0x68bc6f tsubst_function_type
    /gcc/gcc/cp/pt.c:11624
0x677186 tsubst(tree_node*, tree_node*, int, tree_node*)
    /gcc/gcc/cp/pt.c:12357
0x6a219d fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node*
const*, unsigned int, tree_node*, unification_kind_t, int, bool, bool)
    /gcc/gcc/cp/pt.c:16259
0x615479 add_template_candidate_real
    /gcc/gcc/cp/call.c:3057
0x615f0c add_template_candidate
    /gcc/gcc/cp/call.c:3154
0x615f0c add_candidates
    /gcc/gcc/cp/call.c:5285
0x6163d3 perform_overload_resolution
    /gcc/gcc/cp/call.c:4003
0x6188ca build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, bool, int)
    /gcc/gcc/cp/call.c:4080
0x7907d1 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
    /gcc/gcc/cp/semantics.c:2407
0x7147e1 cp_parser_postfix_expression
    /gcc/gcc/cp/parser.c:6368
0x71c349 cp_parser_unary_expression
    /gcc/gcc/cp/parser.c:7438
0x71d047 cp_parser_binary_expression
    /gcc/gcc/cp/parser.c:8172
0x71d87f cp_parser_assignment_expression
    /gcc/gcc/cp/parser.c:8430


             reply	other threads:[~2015-03-11 15:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 15:37 alserkli at inbox dot ru [this message]
2015-03-16  9:09 ` [Bug c++/65390] " mpolacek at gcc dot gnu.org
2015-03-16  9:15 ` mpolacek at gcc dot gnu.org
2015-03-16  9:22 ` alserkli at inbox dot ru
2015-03-16 13:38 ` ktietz at gcc dot gnu.org
2015-03-16 13:38 ` redi at gcc dot gnu.org
2015-03-16 13:41 ` redi at gcc dot gnu.org
2015-03-31 17:54 ` mpolacek at gcc dot gnu.org
2015-03-31 17:58 ` mpolacek 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-65390-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).