Changeset 420 in dev for trunk/abdev


Ignore:
Timestamp:
Mar 7, 2008, 1:01:20 PM (17 years ago)
Author:
dai_9181
Message:

32bitコンパイラのリリース版で落ちてしまうバグを修正。スタック上の一時オブジェクトをクラス参照型パラメータに適用するのは危ない??

Location:
trunk/abdev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler32/Compile_CallProc.cpp

    r415 r420  
    290290            else{
    291291                bool isLiteral;
    292                 if( !TermOpe( ObjectName, Type(), Type(), isLiteral, NULL, NULL, false, !pMethod->IsConst() ) )
     292                Type baseType( DEF_OBJECT, *pUserProc->GetParentClassPtr() ) , resultType;
     293                if( !TermOpe( ObjectName, baseType, resultType, isLiteral, NULL, NULL, false, !pMethod->IsConst() ) )
    293294                {
    294295                    return false;
  • trunk/abdev/BasicCompiler64/Compile_CallProc.cpp

    r416 r420  
    323323            else{
    324324                bool isLiteral;
    325                 if( !TermOpe( ObjectName, Type(), Type(), isLiteral, NULL, NULL, false, !pMethod->IsConst() ) )
     325                Type baseType( DEF_OBJECT, *pUserProc->GetParentClassPtr() ) , resultType;
     326                if( !TermOpe( ObjectName, baseType, resultType, isLiteral, NULL, NULL, false, !pMethod->IsConst() ) )
    326327                {
    327328                    return false;
Note: See TracChangeset for help on using the changeset viewer.