Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

Assertion fails when a class has multiple incomplete base classes #120

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
class A { class B { class C : A, B {} } }

Please use labels and text to provide additional information.

The algorithm at the end of emitEndClass() is based on the incorrect assumption 
that there can be only one incomplete base class.  In fact, there can be 
multiple incomplete base classes as the example above illustrates.  The code 
needs to be modified to find the outermost incomplete base class.

Original issue reported on code.google.com by mind...@gmail.com on 9 Jan 2013 at 12:29