Changeset 23c4aa8


Ignore:
Timestamp:
Feb 24, 2017, 3:23:59 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
167a9c8, 356c62a
Parents:
255b294
Message:

fix constructor transitivity rule

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/GenInit.cc

    r255b294 r23c4aa8  
    332332                        if ( ObjectDecl * field = dynamic_cast< ObjectDecl * >( member ) ) {
    333333                                if ( isManaged( field ) ) {
    334                                         managedTypes.insert( SymTab::Mangler::mangle( aggregateDecl ) );
     334                                        StructInstType inst( Type::Qualifiers(), aggregateDecl );
     335                                        managedTypes.insert( SymTab::Mangler::mangle( &inst ) );
    335336                                        break;
    336337                                }
  • src/tests/.expect/globals.txt

    r255b294 r23c4aa8  
    1 static  inline  autogen value
     1static          inline          autogen         value
    22no              no              no              22
    33no              no              yes             22
  • src/tests/globals.c

    r255b294 r23c4aa8  
    7070
    7171int main() {
    72         sout | "static\tinline\tautogen\tvalue" | endl;
     72        sout | "static\t\tinline\t\tautogen\t\tvalue" | endl;
    7373
    7474        sout | "no \t\tno \t\tno \t\t" | g.val.value    | endl;
  • src/tests/simpleGenericTriple.c

    r255b294 r23c4aa8  
    2828  int x1 = 123, x3 = 456;
    2929  double x2 = 999.123;
    30   struct T3(int) Li = { x1, x2, x3 };
     30  struct T3(int) Li = { x1, (int)x2, x3 };
    3131  struct T3(int) Ri = { 9, 2, 3 };
    3232  struct T3(int) reti = Li+Ri;
Note: See TracChangeset for help on using the changeset viewer.