https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79689
--- Comment #3 from Maciej Waruszewski ---
Full output that I'm getting:
*** buffer overflow detected ***:
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/cc1plus terminated
=== Backtrace: =
/usr/lib/libc.so.6(+0x70c4b)[0x7f2742ab2c4b]
/usr/l
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mwarusz at gmail dot com
Target Milestone: ---
The following valid c++11 code:
template
auto f(T x) -> decltype(-1. * x)
{
return -1. * x;
}
int main()
{
auto y = f(44.);
}
triggers ICE using
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mwarusz at gmail dot com
Target Milestone: ---
Sample code:
template
struct A
{
struct N { };
};
template
class B : public A
{
using parent_t = A;
public:
struct N : parent_t::N