repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wsequence-point-2.C
blob
ab9c97a80948583640da04722eaf9359bf529e9e
1
// PR c++/45894
2
// { dg-do compile }
3
// { dg-options "-std=c++0x -Wsequence-point" }
4
5
struct F
6
{
7
template <typename = int>
8
void bar ();
9
};
10
template <typename = int>
11
struct V
12
{
13
V (const V &) { F::bar <>; }
14
};
15
struct C
16
{
17
V <> v;
18
};
19
struct B
20
{
21
C f ();
22
};
23
struct A
24
{
25
C c;
26
B b;
27
A () : c (b.f ()) { }
28
};