mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 12:00:11 -05:00
2017-10-10 Paolo Carlini <paolo.carlini@oracle.com> PR c++/81032 * g++.dg/cpp1y/lambda-generic-ice6.C: New. From-SVN: r253619
14 lines
210 B
C
14 lines
210 B
C
// PR c++/81032
|
|
// { dg-do compile { target c++14 } }
|
|
|
|
template<typename T> constexpr void foo(T t)
|
|
{
|
|
constexpr int i = t; // { dg-error "constant" }
|
|
[=](auto){ return i; }(0);
|
|
}
|
|
|
|
void bar()
|
|
{
|
|
foo(0);
|
|
}
|