repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
changes-meaning2.C
blob
7ac888c0babc467fc7033d52654438a543e2b83d
1
// It's an error to redeclare a name after using it in the class, but be
2
// lenient if it has the same meaning.
3
4
// { dg-options "" }
5
6
struct Lock { };
7
struct Traits
8
{
9
Lock lock;
10
typedef ::Lock Lock; // { dg-warning -Wchanges-meaning }
11
};
12
struct Traits2
13
{
14
Lock lock;
15
typedef int Lock; // { dg-error -Wchanges-meaning }
16
};