Skip to content

Commit

Permalink
symb-comp: Fix comment about abstract vtable slots
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed Apr 6, 2014
1 parent 68284ea commit b90f207
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/compiler/symb-comp.bas
Expand Up @@ -223,9 +223,11 @@ private sub hBuildVtable( byval udt as FBSYMBOL ptr )
'' 1. new (and not inherited) entries for ...
'' - virtuals: must be set to point to their bodies for now.
'' (not yet overridden)
'' - abstracts: are set to point to fb_AbstractStub() (our version
'' of GCC's __cxa_pure_virtual()), which will show a run-time
'' error message and abort the program.
'' - abstracts: are set to NULL, so if they're not overridden, a NULL
'' pointer crash will happen when they're called, which is handled by
'' -exx error checking (see also astBuildVtableLookup()).
'' (GCC sets it to point to __cxa_pure_virtual(), which shows a
'' run-time error message and aborts the program)
''
'' 2. any entries for inherited virtuals/abstracts that were overridden
'' by a normal method must be updated to point to the normal method.
Expand Down

0 comments on commit b90f207

Please sign in to comment.