[Bug c++/70254] New: Compiler crash

2016-03-16 Thread dannix84 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70254

Bug ID: 70254
   Summary: Compiler crash
   Product: gcc
   Version: 4.9.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dannix84 at gmail dot com
  Target Milestone: ---

g++ crashes with internal compiler error: Segmentation fault

when trying to instantiate the following template class:


template
class NamedResourceFactory
{
using ResourceType = decltype(Creator())::type::pointer;
};

[Bug c++/70254] Compiler crash

2016-03-19 Thread dannix84 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70254

--- Comment #3 from Daniel  ---
Created attachment 37992
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37992&action=edit
test case


g++ -m64 -g -Wall -Wextra -pipe -fvisibility=default -x c++ -std=c++14 -fPIC
example.cpp

results in a crash