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
PR c++/49508
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
this.C
blob
17e897851481b215dfbb275fb5defc8ae85f35b3
1
// { dg-do assemble }
2
// PRMS Id: 5190
3
// Bug: g++ fails to build up a const reference to `this'.
4
5
class X
6
{
7
public:
8
void member ();
9
};
10
11
void print (const X* const &);
12
13
void X::member ()
14
{
15
print (this);
16
}