mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-22 12:19:41 +08:00
re PR c++/53473 ([C++11] static constexpr noexcept cannot be specialized)
2013-11-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53473 * g++.dg/cpp0x/constexpr-noexcept7.C: New. From-SVN: r204967
This commit is contained in:
parent
1eadb567ef
commit
588224554a
@ -1,3 +1,8 @@
|
||||
2013-11-18 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/53473
|
||||
* g++.dg/cpp0x/constexpr-noexcept7.C: New.
|
||||
|
||||
2013-11-18 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/59125
|
||||
|
9
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C
Normal file
9
gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept7.C
Normal file
@ -0,0 +1,9 @@
|
||||
// PR c++/53473
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
template<typename T> struct A
|
||||
{
|
||||
static constexpr T foo() noexcept { return 0; }
|
||||
};
|
||||
|
||||
template<> constexpr int A<int>::foo() noexcept { return 0; }
|
Loading…
Reference in New Issue
Block a user