repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-delete2.C
blob
4a453a4d3619086d7498259f2444c28882e6ae54
1
// PR c++/69203
2
// { dg-do compile { target c++11 } }
3
4
struct A { ~A(); };
5
constexpr int f(int i) { return i; }
6
constexpr int g(A* ap)
7
{
8
return f((delete[] ap, 42)); // { dg-message "" }
9
}
10
11
A a;
12
constexpr int i = g(&a); // { dg-error "" }