[Bug c++/70938] New: internal compiler error: in tsubst_copy, at cp/pt.c:13008

bruck.michael at googlemail dot com gcc-bugzilla@gcc.gnu.org
Wed May 4 06:01:00 GMT 2016


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)


More information about the Gcc-bugs mailing list