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
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
lvalue2.C
blob
e9074aa6c92a68b749cfd3815d0083453c9e0274
1
// PR c++/50835
2
3
struct A {};
4
5
struct B
6
{
7
explicit B(A &);
8
operator A&() const;
9
};
10
11
void should_be_lvalue(A&);
12
13
template <typename>
14
void f()
15
{
16
A v;
17
should_be_lvalue(true ? B(v) : v);
18
}