Opened 7 years ago

Closed 7 years ago

#68 closed defect (fixed)

Generic thread

Reported by: pabuhr Owned by: Rob
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

#include <thread>
forall( otype T )
thread cons {
    T i;
};
cfa test.c
CFA Version 1.0.0 (debug)
test.c:6:1 error: Attempt to provide non-type parameter: nullptr for type parameter __T_generic_: sized object type
... with assertions
  ?=?: function
  ... with parameters
    reference to instance of type __T_generic_ (not function type) 
    instance of type __T_generic_ (not function type) 
  ... returning 
    _retval__operator_assign: instance of type __T_generic_ (not function type) 
    ... with attributes: 
      Attribute with name: unused


  ?{}: function
  ... with parameters
    reference to instance of type __T_generic_ (not function type) 
  ... returning nothing 

  ?{}: function
  ... with parameters
    reference to instance of type __T_generic_ (not function type) 
    instance of type __T_generic_ (not function type) 
  ... returning nothing 

  ^?{}: function
  ... with parameters
    reference to instance of type __T_generic_ (not function type) 
  ... returning nothing 

Change History (1)

comment:1 Changed 7 years ago by Thierry Delisle <tdelisle@…>

Resolution: fixed
Status: assignedclosed

In 2db79e5:

[fixes #68] added generic parameters to genereted functions for thread

Note: See TracTickets for help on using tickets.