Opened 17 months ago

Closed 16 months ago

Last modified 13 months ago

#158 closed defect (fixed)

Missing constructor reference parameter

Reported by: pabuhr Owned by: Thierry Delisle <tdelisle@…>
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description

First parameter of constructor must be refererence.

struct S { int i; };
void ?{}( S  s ); // forgot constructor reference

CFA Version 1.0.0 (debug)
cfa-cpp: SymTab/Indexer.cc:301: std::string SymTab::getOtypeKey(const FunctionDecl*): Assertion `base' failed.
Stack back trace for: /u0/pabuhr/software/mary/cfa-cc/lib/cfa/cfa-cpp
(0) /lib/x86_64-linux-gnu/libc.so.6 : (/*unknown*/)+0x2dc82 [0x7f557b935c82]
(1) /u0/pabuhr/software/mary/cfa-cc/lib/cfa/cfa-cpp() [0x14421e2]
(2) /u0/pabuhr/software/mary/cfa-cc/lib/cfa/cfa-cpp : SymTab::Indexer::removeSpecialOverrides(SymTab::Indexer::IdData&, std::shared_ptr<PersistentMap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, SymTab::Indexer::IdData, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&)+0xda [0x1443a2a]
(3) /u0/pabuhr/software/mary/cfa-cc/lib/cfa/cfa-cpp : SymTab::Indexer::addId(DeclarationWithType const*, SymTab::Indexer::OnConflict, Expression const*, Declaration const*)+0x321 [0x1448681]
(4) /u0/pabuhr/software/mary/cfa-cc/lib/cfa/cfa-cpp : PassVisitor<SymTab::LinkReferenceToTypes_old>::visit(FunctionDecl*)+0x85 [0x162dda5]
(5) /u0/pabuhr/software/mary/cfa-cc/lib/cfa/cfa-cpp : SymTab::validate(std::__cxx11::list<Declaration*, std::allocator<Declaration*> >&, bool)+0x679 [0x14c82e9]
(6) /u0/pabuhr/software/mary/cfa-cc/lib/cfa/cfa-cpp : main(/*unknown*/)+0x653 [0x92bb13]
CC1 Translator error: stage 2, child failed 6

Change History (3)

comment:1 Changed 16 months ago by Thierry Delisle <tdelisle@…>

Owner: set to Thierry Delisle <tdelisle@…>
Resolution: fixed
Status: newclosed

In 98538288:

Moved VerifyCtorDtorAssign? up and changed return type check to support the change.
fixes #158?

comment:2 Changed 16 months ago by Thierry Delisle <tdelisle@…>

In 98538288:

Moved VerifyCtorDtorAssign? up and changed return type check to support the change.
fixes #158?

comment:3 Changed 13 months ago by Thierry Delisle <tdelisle@…>

In 98538288:

Moved VerifyCtorDtorAssign? up and changed return type check to support the change.
fixes #158?

Note: See TracTickets for help on using tickets.