Commit 7f8aaa1a by Marek Polacek Committed by Marek Polacek

re PR c++/90236 (bogus error with auto non-type template argument)

	PR c++/90236
	* g++.dg/cpp1z/nontype-auto16.C: New test.

From-SVN: r270557
parent fd177738
2019-04-24 Marek Polacek <polacek@redhat.com>
PR c++/90236
* g++.dg/cpp1z/nontype-auto16.C: New test.
2019-04-24 Jakub Jelinek <jakub@redhat.com>
PR target/90193
......
// PR c++/90236
// { dg-do compile { target c++17 } }
struct foo { };
template <const auto &> void fnc() { }
void
test()
{
static constexpr foo a;
fnc<a>();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment