diff options
Diffstat (limited to 'test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp')
-rw-r--r-- | test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp b/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp index 80f0598..e0c7b35 100644 --- a/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp +++ b/test/CXX/temp/temp.spec/temp.explicit/p1-0x.cpp @@ -12,7 +12,7 @@ struct Y { constexpr int f() { return 0; } }; -template constexpr int Y<int>::f(); // expected-error{{explicit instantiation cannot be 'constexpr'}} +template constexpr int Y<int>::f() const; // expected-error{{explicit instantiation cannot be 'constexpr'}} template<typename T> struct Z { |