public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64462] New: ICE while compiling lambda using local constexpr reference variable
@ 2015-01-01 4:52 lunow at math dot hu-berlin.de
2015-01-08 10:38 ` [Bug c++/64462] " ville.voutilainen at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: lunow at math dot hu-berlin.de @ 2015-01-01 4:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64462
Bug ID: 64462
Summary: ICE while compiling lambda using local constexpr
reference variable
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lunow at math dot hu-berlin.de
The following Code triggers the crash (C++11 mode)
int x = 0;
int z;
int main() {
constexpr int& y = x;
[=] { z = y; }();
}
$ g++ gccbug.cpp -std=c++11
gccbug.cpp: In lambda function:
gccbug.cpp:7:11: internal compiler error: in cp_build_modify_expr, at
cp/typeck.c:7446
[=] { z = y; }();
^
Please submit a full bug report,
...
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/64462] ICE while compiling lambda using local constexpr reference variable
2015-01-01 4:52 [Bug c++/64462] New: ICE while compiling lambda using local constexpr reference variable lunow at math dot hu-berlin.de
@ 2015-01-08 10:38 ` ville.voutilainen at gmail dot com
2015-01-08 17:42 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ville.voutilainen at gmail dot com @ 2015-01-08 10:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64462
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-01-08
CC| |ville.voutilainen at gmail dot com
Known to work| |5.0
Ever confirmed|0 |1
Known to fail| |4.8.2, 4.9.1
--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
I don't see an ICE with the current trunk.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/64462] ICE while compiling lambda using local constexpr reference variable
2015-01-01 4:52 [Bug c++/64462] New: ICE while compiling lambda using local constexpr reference variable lunow at math dot hu-berlin.de
2015-01-08 10:38 ` [Bug c++/64462] " ville.voutilainen at gmail dot com
@ 2015-01-08 17:42 ` paolo.carlini at oracle dot com
2015-01-08 17:49 ` paolo.carlini at oracle dot com
2015-01-08 17:49 ` paolo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-01-08 17:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64462
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks Ville. Let's add the testcase and close this.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/64462] ICE while compiling lambda using local constexpr reference variable
2015-01-01 4:52 [Bug c++/64462] New: ICE while compiling lambda using local constexpr reference variable lunow at math dot hu-berlin.de
2015-01-08 10:38 ` [Bug c++/64462] " ville.voutilainen at gmail dot com
2015-01-08 17:42 ` paolo.carlini at oracle dot com
@ 2015-01-08 17:49 ` paolo.carlini at oracle dot com
2015-01-08 17:49 ` paolo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-01-08 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64462
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |5.0
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/64462] ICE while compiling lambda using local constexpr reference variable
2015-01-01 4:52 [Bug c++/64462] New: ICE while compiling lambda using local constexpr reference variable lunow at math dot hu-berlin.de
` (2 preceding siblings ...)
2015-01-08 17:49 ` paolo.carlini at oracle dot com
@ 2015-01-08 17:49 ` paolo at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-01-08 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64462
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Thu Jan 8 17:48:38 2015
New Revision: 219352
URL: https://gcc.gnu.org/viewcvs?rev=219352&root=gcc&view=rev
Log:
2015-01-08 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64462
* g++.dg/cpp0x/constexpr-64462.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-64462.C
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-01-08 17:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-01 4:52 [Bug c++/64462] New: ICE while compiling lambda using local constexpr reference variable lunow at math dot hu-berlin.de
2015-01-08 10:38 ` [Bug c++/64462] " ville.voutilainen at gmail dot com
2015-01-08 17:42 ` paolo.carlini at oracle dot com
2015-01-08 17:49 ` paolo.carlini at oracle dot com
2015-01-08 17:49 ` paolo 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).