Changes between Initial Version and Version 1 of Ticket #197


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #197 – Description

    initial v1  
    88{{{
    99struct A {};
     10void ?{}(A& a) { sout | 'A'; }
    1011struct B { [A, A] elem; };
     12
     13int main() {
     14  B b;
     15  sout | '\n';
     16  B b1 = b;
     17}
    1118}}}
     19
     20Correct behavior is the program prints two A's twice. Currently on B b1 = b; it prints four times.
    1221
    1322compile this snippet with -n -P resolver, should find the following (note the "maybe constructed"):