public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/66445] New: [5/6 Regression] ICE with lambda in stmt expression in a template
@ 2015-06-06 20:25 jakub at gcc dot gnu.org
2015-06-11 15:05 ` [Bug c++/66445] " jason at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-06 20:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66445
Bug ID: 66445
Summary: [5/6 Regression] ICE with lambda in stmt expression in
a template
Product: gcc
Version: 5.1.1
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
CC: jason at gcc dot gnu.org
Target Milestone: ---
template <typename> void foo ()
{
auto a = ({ [=] {}; });
}
ICEs with -std=c++11 as well as -std=c++14 starting with r217748.
The diagnostics is:
rh1228916.ii: In function ‘void fn1()’:
rh1228916.ii:3:24: sorry, unimplemented: unexpected AST of kind type_decl
auto a = ({ [=] {}; });
^
rh1228916.ii:3:24: internal compiler error: in potential_constant_expression_1,
at cp/constexpr.c:4235
>From gcc-bugs-return-488263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 06 20:25:29 2015
Return-Path: <gcc-bugs-return-488263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 18218 invoked by alias); 6 Jun 2015 20:25:29 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 18155 invoked by uid 48); 6 Jun 2015 20:25:25 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66445] [5/6 Regression] ICE with lambda in stmt expression in a template
Date: Sat, 06 Jun 2015 20:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.1
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-66445-4-M8PX2D4XJn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66445-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66445-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg00595.txt.bz2
Content-length: 453
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf445
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-06-06
Target Milestone|--- |5.2
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66445] [5/6 Regression] ICE with lambda in stmt expression in a template 2015-06-06 20:25 [Bug c++/66445] New: [5/6 Regression] ICE with lambda in stmt expression in a template jakub at gcc dot gnu.org @ 2015-06-11 15:05 ` jason at gcc dot gnu.org 2015-06-11 15:45 ` jason at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-06-11 15:05 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66445 --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Jun 11 15:04:54 2015 New Revision: 224379 URL: https://gcc.gnu.org/viewcvs?rev=224379&root=gcc&view=rev Log: PR c++/66445 * constexpr.c (potential_constant_expression_1): Handle a DECL_EXPR of TYPE_DECL. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/ext/stmtexpr18.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/constexpr.c ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66445] [5/6 Regression] ICE with lambda in stmt expression in a template 2015-06-06 20:25 [Bug c++/66445] New: [5/6 Regression] ICE with lambda in stmt expression in a template jakub at gcc dot gnu.org 2015-06-11 15:05 ` [Bug c++/66445] " jason at gcc dot gnu.org @ 2015-06-11 15:45 ` jason at gcc dot gnu.org 2015-06-17 19:43 ` jason at gcc dot gnu.org 2015-06-17 19:43 ` jason at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-06-11 15:45 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66445 --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Jun 11 15:45:08 2015 New Revision: 224382 URL: https://gcc.gnu.org/viewcvs?rev=224382&root=gcc&view=rev Log: PR c++/66445 * constexpr.c (potential_constant_expression_1): Handle a DECL_EXPR of TYPE_DECL. Added: trunk/gcc/testsuite/g++.dg/ext/stmtexpr18.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66445] [5/6 Regression] ICE with lambda in stmt expression in a template 2015-06-06 20:25 [Bug c++/66445] New: [5/6 Regression] ICE with lambda in stmt expression in a template jakub at gcc dot gnu.org 2015-06-11 15:05 ` [Bug c++/66445] " jason at gcc dot gnu.org 2015-06-11 15:45 ` jason at gcc dot gnu.org @ 2015-06-17 19:43 ` jason at gcc dot gnu.org 2015-06-17 19:43 ` jason at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-06-17 19:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66445 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |megahallon at gmail dot com --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- *** Bug 66517 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66445] [5/6 Regression] ICE with lambda in stmt expression in a template 2015-06-06 20:25 [Bug c++/66445] New: [5/6 Regression] ICE with lambda in stmt expression in a template jakub at gcc dot gnu.org ` (2 preceding siblings ...) 2015-06-17 19:43 ` jason at gcc dot gnu.org @ 2015-06-17 19:43 ` jason at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu.org @ 2015-06-17 19:43 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66445 Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org --- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-17 19:43 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-06-06 20:25 [Bug c++/66445] New: [5/6 Regression] ICE with lambda in stmt expression in a template jakub at gcc dot gnu.org 2015-06-11 15:05 ` [Bug c++/66445] " jason at gcc dot gnu.org 2015-06-11 15:45 ` jason at gcc dot gnu.org 2015-06-17 19:43 ` jason at gcc dot gnu.org 2015-06-17 19:43 ` jason at gcc dot gnu.org
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).