blob: 49c7b7abb6335f33c46cc0f83912e4fc747892de (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// PR c++/84854
// { dg-do compile { target c++17 } }
constexpr int foo () { return 1; }
constexpr int foo (int) { return 2; }
template <typename>
void a()
{
if constexpr(foo) { }; // { dg-error "overloaded" }
}
|