Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#123 closed defect (fixed)

Reference failure

Reported by: pabuhr Owned by: Peter A. Buhr <pabuhr@…>
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

int & i = &0;
cfa test.cfa
CFA Version 1.0.0 (debug)
*CFA assertion error* "ret" from program "cfa-cpp" in "T strict_dynamic_cast(const U&) [with T = ReferenceType*; U = Type*]" at line 43 in file "./include/cassert": zero_t
Stack back trace for: /u0/pabuhr/software/fred/cfa-cc/lib/cfa/cfa-cpp
(0) /u0/pabuhr/software/fred/cfa-cc/lib/cfa/cfa-cpp : AddressExpr::AddressExpr(Expression*)+0xba [0xedc43a]
(1) /u0/pabuhr/software/fred/cfa-cc/lib/cfa/cfa-cpp : yyparse()+0x1d92 [0xb7ca12]
(2) /u0/pabuhr/software/fred/cfa-cc/lib/cfa/cfa-cpp() [0x73b838]
(3) /u0/pabuhr/software/fred/cfa-cc/lib/cfa/cfa-cpp : main(/*unknown*/)+0x13f [0x733eff]
CFA Translator error: cfa-cpp failed with signal 6

Change History (3)

comment:1 Changed 6 years ago by Peter A. Buhr <pabuhr@…>

Owner: set to Peter A. Buhr <pabuhr@…>
Resolution: fixed
Status: newclosed

In 734ceb3:

print error message rather than fail when taking address of non-lvalue expression [fixes #123]

comment:2 Changed 6 years ago by Peter A. Buhr <pabuhr@…>

In 734ceb3:

print error message rather than fail when taking address of non-lvalue expression [fixes #123]

comment:3 Changed 6 years ago by Peter A. Buhr <pabuhr@…>

In 734ceb3:

print error message rather than fail when taking address of non-lvalue expression [fixes #123]

Note: See TracTickets for help on using tickets.