This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]