Changes in src/ResolvExpr/Resolver.cc [3cfe27f:52f85e0]
- File:
-
- 1 edited
-
src/ResolvExpr/Resolver.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r3cfe27f r52f85e0 10 10 // Created On : Sun May 17 12:17:01 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : T hu Mar 24 16:43:11201613 // Update Count : 1 8112 // Last Modified On : Tue Feb 9 21:57:52 2016 13 // Update Count : 179 14 14 // 15 15 … … 165 165 Type *new_type = resolveTypeof( objectDecl->get_type(), *this ); 166 166 objectDecl->set_type( new_type ); 167 // To handle initialization of routine pointers, e.g., int (*fp)(int) = foo(), means that class-variable168 // initContext is changed multiple time because the LHS is analysed twice. The second analysis changes169 // initContext because of a function type can contain object declarations in the return and parameter types. So170 // each value of initContext is retained, so the type on the first analysis is preserved and used for selecting171 // the RHS.172 Type *temp = initContext;173 167 initContext = new_type; 174 168 SymTab::Indexer::visit( objectDecl ); 175 initContext = temp;176 169 } 177 170
Note:
See TracChangeset
for help on using the changeset viewer.