Changeset fb04321 for src/Parser
- Timestamp:
- Mar 16, 2017, 9:22:34 AM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- d6d747d
- Parents:
- ddfd945
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
rddfd945 rfb04321 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Mar 16 0 8:37:57 201713 // Update Count : 100 612 // Last Modified On : Thu Mar 16 09:10:57 2017 13 // Update Count : 1007 14 14 // 15 15 … … 1032 1032 // inline _Noreturn int g( int i ); // allowed 1033 1033 // inline _Noreturn int i; // disallowed 1034 if ( type->kind != TypeData::Function && funcSpecs. val != 0) {1034 if ( type->kind != TypeData::Function && funcSpecs.any() ) { 1035 1035 throw SemanticError( "invalid function specifier for ", this ); 1036 1036 } // if … … 1042 1042 // inlne _Noreturn struct S { ... }; // disallowed 1043 1043 // inlne _Noreturn enum E { ... }; // disallowed 1044 if ( funcSpecs. val != 0) {1044 if ( funcSpecs.any() ) { 1045 1045 throw SemanticError( "invalid function specifier for ", this ); 1046 1046 } // if
Note: See TracChangeset
for help on using the changeset viewer.