Changes between Initial Version and Version 1 of Ticket #251


Ignore:
Timestamp:
Jun 15, 2021, 1:17:35 PM (3 years ago)
Author:
mlbrooks
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #251

    • Property Summary changed from Array within tuple return crashes the compiler to C Array within tuple crashes the compiler
  • Ticket #251 – Description

    initial v1  
     1Basic example:
     2
    13{{{
    24[[] int, size_t] getarray() {
     
    79}}}
    810
    9 That code crashes the compiler.
     11Actual: That code crashes the compiler.
    1012
    1113{{{
     
    4850(16) driver/cfa-cpp : main(/*unknown*/)+0xa82 [0x9c9e82]
    4951}}}
     52
     53Expected (all examples):  Same as for type [* int, size_t].
     54
     55Other 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
     62This behaviour is consistent with the description: Decay from type [[] foo] to type [* foo] is not being attempted within tuples, but is required  to happen.