Commit c97b789c by Paolo Carlini Committed by Paolo Carlini

re PR c++/80908 ([c++1z] ICE on instantiating a template deducing the…

re PR c++/80908 ([c++1z] ICE on instantiating a template deducing the noexcept-ness of a function pointer)

2017-10-14  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/80908
	* g++.dg/cpp1z/noexcept-type18.C: New.

From-SVN: r253763
parent 27b8e74a
2017-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/80908
* g++.dg/cpp1z/noexcept-type18.C: New.
2017-10-14 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/81016
* g++.dg/cpp1z/pr81016.C: New.
......
// { dg-options "-std=c++17" }
template<typename T>
struct S;
template<bool IsNoexcept>
struct S<void(*)() noexcept(IsNoexcept)> {
S() {}
};
void f() {}
int main() {
S<decltype(&f)> {};
}
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