Changes between Initial Version and Version 1 of Ticket #251
- Timestamp:
- Jun 15, 2021, 1:17:35 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #251
-
Property
Summary
changed from
Array within tuple return crashes the compiler
toC Array within tuple crashes the compiler
-
Property
Summary
changed from
-
Ticket #251 – Description
initial v1 1 Basic example: 2 1 3 {{{ 2 4 [[] int, size_t] getarray() { … … 7 9 }}} 8 10 9 That code crashes the compiler.11 Actual: That code crashes the compiler. 10 12 11 13 {{{ … … 48 50 (16) driver/cfa-cpp : main(/*unknown*/)+0xa82 [0x9c9e82] 49 51 }}} 52 53 Expected (all examples): Same as for type [* int, size_t]. 54 55 Other examples that produce similar crashes, each on its own: 56 {{{ 57 [[] int, size_t] f(); 58 [void] f( [[] int, size_t] arg ); 59 void f() { [[] int, size_t] var; } 60 }}} 61 62 This behaviour is consistent with the description: Decay from type [[] foo] to type [* foo] is not being attempted within tuples, but is required to happen.