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
c++: P0847R7 (deducing this) - xobj lambdas. [PR102609]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
paren-init12.C
blob
c53b4b53542808b9349e835243e2c3792a6368eb
1
// PR c++/91363 - P0960R3: Parenthesized initialization of aggregates.
2
// { dg-do compile { target c++20 } }
3
4
struct A;
5
6
struct C {
7
operator A();
8
};
9
10
struct A {
11
C c;
12
};
13
14
C c;
15
A a(c); // invokes C’s conversion function to A
16
17
// { dg-final { scan-assembler "_ZN1Ccv1AEv" } }