re PR c++/55443 (ICE for some placement new expressions inside noexcept operator)

2014-11-18  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/55443
	* g++.dg/cpp0x/noexcept26.C: New.
	* g++.dg/cpp0x/noexcept27.C: Likewise.

From-SVN: r217711
This commit is contained in:
Paolo Carlini 2014-11-18 12:24:34 +00:00 committed by Paolo Carlini
parent 3a4d1cb198
commit 60dcf0e053
3 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55443
* g++.dg/cpp0x/noexcept26.C: New.
* g++.dg/cpp0x/noexcept27.C: Likewise.
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60245

View File

@ -0,0 +1,11 @@
// PR c++/55443
// { dg-do compile { target c++11 } }
struct X
{
constexpr X() { }
void* operator new(__SIZE_TYPE__, void*) noexcept;
};
int main() { noexcept(new(0) X); }

View File

@ -0,0 +1,15 @@
// PR c++/55443
// { dg-do compile { target c++11 } }
struct X
{
X() = default;
X(int);
void* operator new(__SIZE_TYPE__, void*) noexcept;
};
X x;
bool b = noexcept(new(0) X);