Bug ID: 84839
           Summary: ICE (Segmentation fault) when `decltype` is used with
                    parameter pack
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot
          Reporter: v.reshetnikov at gmail dot com
  Target Milestone: ---

The following C++ code causes an ICE in GCC 8.0.1 20180312 (tested with
/************* SOURCE *************/
template<typename... T>
struct S {
    using fptr = void(*)(T... x, decltype(x)... y);

using F = S<int>::fptr;
/*********** END SOURCE ***********/

/************* OUTPUT *************/
g++: internal compiler error: Segmentation fault signal terminated program
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
Compiler returned: 4
/*********** END OUTPUT ***********/

Reply via email to