This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15624] Defined types lose const qualifiers in certain method signatures.
- From: "sbrenneis at surry dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2004 23:10:29 -0000
- Subject: [Bug c++/15624] Defined types lose const qualifiers in certain method signatures.
- References: <20040524010314.15624.sbrenneis@surry.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sbrenneis at surry dot net 2004-05-24 23:10 -------
gcctest.cc:28: error: initializing argument 1 of `void ScopeTest::test(char*)
'
Argument 1 of ScopeTest::test is "const TestTraits::CharPtr". The error message
indicates a misleading error and an invalid method signature, hence the bug
report. As you are technically correct about the error report, gcc should report
"error: invalid conversion from `const char*' to `char const*'" and "error:
initializing argument 1 of void ScopeTest::test(char const*)." While the fact of
the error is correct, the report of the error generated by gcc is incorrect and
misleading.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15624