~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/src/CCSemExpr.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-04-07 11:56:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060407115635-e8wfgmetasrf2p27
Tags: 0.99+1.0pre3-1
* new upstream release
* Apply patch from Martin Michlmayr for g++-4.1 (Closes: #357901)
* further (simple) patches in Puma/ and AspectC++ for g++-4.1
* note that Puma needs to be rewoven so that it can be compiled
  with g++-4.1. This will be done we switch the default compiler
  version.
* Patch JoinPointRepo.cc so that it doesn't loop endlessly anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
774
774
  if (info) {
775
775
    // determine result type
776
776
    result = info->TypeInfo ();
777
 
    if (info->AttributeInfo () && ! info->isStatic () && ! info->isMutable ()) {
 
777
    if (info->AttributeInfo () && ! info->isStatic () && 
 
778
        ! info->isMutable () && ! result->isAddress ()) {
778
779
      if (obj_type->isConst () || obj_type->isVolatile ()) {
779
780
        // class data member called on a const/volatile class object
780
781
        // the resulting type of the data member is changed to be const/volatile
980
981
  
981
982
  // name found
982
983
  if (info) {
983
 
    // determine result type
 
984
    // determine result type: if the name occured in the scope of a
 
985
    // const/volatile method and it's the name of a class member 
 
986
    // that is not a reference nor static or mutable, its type also 
 
987
    // becomes const/volatile
984
988
    result = info->TypeInfo ();
985
 
    if (current_scope->LocalScope () && info->AttributeInfo () && ! info->isStatic () && ! info->isMutable ()) {
 
989
    if (current_scope->LocalScope () && info->AttributeInfo () && 
 
990
        ! info->isStatic () && ! info->isMutable () && ! result->isAddress ()) {
986
991
      CFunctionInfo *fct = current_scope->LocalScope ()->Function ();
987
992
      if (fct) {
988
993
        CTypeFunction *ft = fct->TypeInfo ();