https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84839

            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 gnu.org
          Reporter: v.reshetnikov at gmail dot com
  Target Milestone: ---

The following C++ code causes an ICE in GCC 8.0.1 20180312 (tested with
https://godbolt.org/):
/************* 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
cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 4
/*********** END OUTPUT ***********/

Reply via email to