Changeset a494d105


Ignore:
Timestamp:
Mar 2, 2022, 2:30:36 PM (5 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
enum, master, pthread-emulation
Children:
13fdf86
Parents:
362f760
Message:

Added a semantic error if the proper includes are not used before a concurent main.

Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    r362f760 ra494d105  
    422422                        ;
    423423                else if ( auto param = isMainFor( decl, cast_target ) ) {
    424                         // This should never trigger.
    425                         assert( vtable_decl );
     424                        if ( !vtable_decl ) {
     425                                SemanticError( decl, context_error );
     426                        }
    426427                        // Should be safe because of isMainFor.
    427428                        StructInstType * struct_type = static_cast<StructInstType *>(
Note: See TracChangeset for help on using the changeset viewer.