Changes between Version 1 and Version 2 of Ticket #197


Ignore:
Timestamp:
Jul 13, 2020, 9:00:56 PM (4 years ago)
Author:
f37yu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #197 – Description

    v1 v2  
    88{{{
    99struct A {};
    10 void ?{}(A& a) { sout | 'A'; }
     10void ?{}(A& a, A src) { sout | 'A'; }
    1111struct B { [A, A] elem; };
    1212
    1313int main() {
    1414  B b;
    15   sout | '\n';
    1615  B b1 = b;
    1716}
    1817}}}
    1918
    20 Correct behavior is the program prints two A's twice. Currently on B b1 = b; it prints four times.
     19Correct behavior is the program prints twice. Currently on B b1 = b; it prints four times.
    2120
    2221compile this snippet with -n -P resolver, should find the following (note the "maybe constructed"):