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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
new3.C
blob
c6c108903e179c89419916db98a31cd59698f6e7
1
extern void *operator new(__SIZE_TYPE__); // { dg-error "candidate" }
2
3
template <class T >
4
struct C
5
{
6
void f() {
7
int* node;
8
new (&node) int(0); // { dg-error "new" }
9
}
10
};
11
12
void* operator new(__SIZE_TYPE__, void* __p);
13
14
void g() {
15
C<int> c;
16
c.f();
17
}