/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
template<size_t>
struct Foo{
// internal compiler error: unexpected expression ‘<enumerator>’ of kind template_parm_index
template<size_t>
static constexpr auto foo = [](){};
};
template<size_t>
struct Bar{
// OK
template<auto>
static constexpr auto foo = [](){};
};
struct Baz{
// OK
template<size_t>
static constexpr auto bar = [](){};
};
int main()
{
Foo<1> foo;
Bar<1> bar;
Baz baz;
return 0;
}