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

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 at gcc dot gnu.org
2015-01-08 17:49 ` paolo.carlini at oracle dot com

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).