This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15169] New: " const" on the wrong side of type in error message.


Compile:

class A { };

void f ()
{
  A const a = {};
  a->foo;
}

And you get the error:

troep.cc: In function `void f()':
troep.cc:6: error: base operand of `->' has non-pointer type ` constA'

This should be

troep.cc:6: error: base operand of `->' has non-pointer type `A const'

-- 
           Summary: " const" on the wrong side of type in error message.
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: carlo at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15169


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]