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:
Paolo Carlini 2013-11-18 15:26:45 +00:00 committed by Paolo Carlini
parent 1eadb567ef
commit 588224554a
2 changed files with 14 additions and 0 deletions

View File

@ -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

View 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; }