blob: 5b742926b6dbe1c7bcd1cddc45f8c528f7b5be95 [file] [log] [blame]
// PR c++/98930
// { dg-do compile { target c++17 } }
template<int*>
struct A { };
template<class T>
auto impl() {
static int i;
return A<&i>();
}
using type = decltype(impl<int>());
using type = decltype(impl<char>()); // { dg-error "conflicting declaration" }