public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65525] ICE: sorry, unimplemented: unexpected AST of kind mem_ref (-std=c++14, ICE: in potential_constant_expression_1, at cp/constexpr.c:4432)
Date: Tue, 24 Mar 2015 10:25:00 -0000	[thread overview]
Message-ID: <bug-65525-4-7QP1n7Cdeo@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-65525-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Run till exit from #0  0x00000000012bf93a in build2_stat (code=MEM_REF, 
    tt=<array_type 0x7ffff6a35f18>, arg0=<addr_expr 0x7ffff6a39760>, 
    arg1=<integer_cst 0x7ffff6a33228>)
    at /space/rguenther/src/svn/trunk/gcc/tree.c:4385
0x00000000006f8b40 in build_over_call (cand=0x24f7aa0, flags=1, complain=3)
    at /space/rguenther/src/svn/trunk/gcc/cp/call.c:7456
7456              t = build2 (MODIFY_EXPR, void_type_node,
Value returned is $9 = (tree_node *) 0x7ffff6a37758
(gdb) l
7451              array_type = build_array_type (char_type_node,
7452                                             build_index_type
7453                                               (size_binop (MINUS_EXPR,
7454                                                            arg2, size_int
(1))));
7455              alias_set = build_int_cst (build_pointer_type (type), 0);
7456              t = build2 (MODIFY_EXPR, void_type_node,
7457                          build2 (MEM_REF, array_type, arg0, alias_set),
7458                          build2 (MEM_REF, array_type, arg, alias_set));
7459              val = build2 (COMPOUND_EXPR, TREE_TYPE (to), t, to);

so the C++ FE even builds this itself.


  parent reply	other threads:[~2015-03-24 10:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 16:49 [Bug c++/65525] New: " marciso.gcc at gmail dot com
2015-03-24 10:23 ` [Bug c++/65525] " rguenth at gcc dot gnu.org
2015-03-24 10:25 ` rguenth at gcc dot gnu.org [this message]
2015-03-24 10:29 ` rguenth at gcc dot gnu.org
2015-03-26 16:21 ` [Bug c++/65525] [5 Regression] " jason at gcc dot gnu.org
2015-03-26 18:25 ` jason at gcc dot gnu.org
2015-03-26 18:31 ` jason at gcc dot gnu.org
2015-03-27 10:06 ` rogero at howzatt dot demon.co.uk

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-65525-4-7QP1n7Cdeo@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).