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
/
diagnostic
/
enum1.C
blob
e91e970dab47660750b40fdc68fbd3094f5cfc18
1
// PR c++/92974 - bogus location for enum and non-enum in ?: warning.
2
// { dg-options "-Wextra" }
3
4
enum { X };
5
6
struct S {
7
template <typename T>
8
void f(T) { unsigned int g(X ?: g); } // { dg-warning "enumerated and non-enumerated type in conditional expression" }
9
};
10
11
struct S2 {
12
S m;
13
void l() { m.f(1); }
14
};