[Bug c++/15169] New: " const" on the wrong side of type in error message.
carlo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Apr 27 14:27:00 GMT 2004
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
More information about the Gcc-bugs
mailing list