mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-13 06:23:55 +08:00
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:
parent
3a4d1cb198
commit
60dcf0e053
@ -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>
|
2014-11-18 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
PR c++/60245
|
PR c++/60245
|
||||||
|
11
gcc/testsuite/g++.dg/cpp0x/noexcept26.C
Normal file
11
gcc/testsuite/g++.dg/cpp0x/noexcept26.C
Normal 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); }
|
15
gcc/testsuite/g++.dg/cpp0x/noexcept27.C
Normal file
15
gcc/testsuite/g++.dg/cpp0x/noexcept27.C
Normal 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);
|
Loading…
Reference in New Issue
Block a user