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
* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
attribute-may-alias-1.C
blob
24d2aab7615a9b7321dec0b8664e3dde6d8ba404
1
// PR c++/53421
2
3
template< class T >
4
struct Y : T
5
{ } __attribute__((__may_alias__));
6
7
struct X
8
{
9
operator Y<X>& () { return *static_cast< Y<X>* >(this); }
10
};
11
12
int main()
13
{
14
&X::operator Y<X>&;
15
}