This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70938] New: internal compiler error: in tsubst_copy, at cp/pt.c:13008
- From: "bruck.michael at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 May 2016 06:00:57 +0000
- Subject: [Bug c++/70938] New: internal compiler error: in tsubst_copy, at cp/pt.c:13008
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70938
Bug ID: 70938
Summary: internal compiler error: in tsubst_copy, at
cp/pt.c:13008
Product: gcc
Version: 5.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: bruck.michael at googlemail dot com
Target Milestone: ---
$ cat ice-20160504.cpp
struct bar_t
{
int i;
};
template <typename T>
struct foo_t
{
bar_t & bar = *(bar_t *)0x7770;
int & i = bar.i;
};
constexpr auto foo = foo_t<int>{};
$ arm-none-eabi-g++.exe -std=c++14 ice-20160504.cpp
ice-20160504.cpp:13:33: internal compiler error: in tsubst_copy, at
cp/pt.c:13008
constexpr auto foo = foo_t<int>{};
^
...
$ arm-none-eabi-g++.exe -V
...
gcc version 5.3.1 20160307 (release) [ARM/embedded-5-branch revision 234589]
(GNU Tools for ARM Embedded Processors)