[Bug c++/79689] ICE with trailing return type

2017-02-23 Thread mwarusz at gmail dot com
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

[Bug c++/79689] New: ICE with trailing return type

2017-02-23 Thread mwarusz at gmail dot com
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

[Bug c++/67080] New: Access to private using declaration incorrectly allowed

2015-07-31 Thread mwarusz at gmail dot com
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