This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15169] New: " const" on the wrong side of type in error message.
- From: "carlo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2004 14:12:38 -0000
- Subject: [Bug c++/15169] New: " const" on the wrong side of type in error message.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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