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
c++: constantness of call to function pointer [PR111703]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
using4.C
blob
2abe399f8dc7a94e79511c5def0c4a21d80ebb22
1
// PR c++/58457
2
3
struct allocator
4
{
5
void operator delete (void*);
6
void* operator new (__SIZE_TYPE__, void*);
7
};
8
9
struct type : public allocator
10
{
11
type() {}
12
using allocator::operator new;
13
using allocator::operator delete;
14
};
15
16
int main()
17
{
18
new (0) type;
19
return 0;
20
}