Changes between Version 1 and Version 2 of Ticket #197
- Timestamp:
- Jul 13, 2020, 9:00:56 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #197 – Description
v1 v2 8 8 {{{ 9 9 struct A {}; 10 void ?{}(A& a ) { sout | 'A'; }10 void ?{}(A& a, A src) { sout | 'A'; } 11 11 struct B { [A, A] elem; }; 12 12 13 13 int main() { 14 14 B b; 15 sout | '\n';16 15 B b1 = b; 17 16 } 18 17 }}} 19 18 20 Correct behavior is the program prints tw o A's twice. Currently on B b1 = b; it prints four times.19 Correct behavior is the program prints twice. Currently on B b1 = b; it prints four times. 21 20 22 21 compile this snippet with -n -P resolver, should find the following (note the "maybe constructed"):