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++/15624] Defined types lose const qualifiers in certain method signatures.


------- 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


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