This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15169] [3.5 Regression] " 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: 4 May 2004 16:47:58 -0000
- Subject: [Bug c++/15169] [3.5 Regression] " const" on the wrong side of type in error message.
- References: <20040427141234.15169.carlo@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From carlo at gcc dot gnu dot org 2004-05-04 16:47 -------
More 'const' and space problems.
I assume the following errors are related to the one descibed above.
../../src/IniFile.cc:88: error: no matching function for call to
`IniFile::Section::Section(xml::node::const_iterator&)'
../../src/include/IniFile.h:39: note: candidates are:
IniFile::Section::Section(constIniFile::Section&)
../../src/include/IniFile.h:63: note:
IniFile::Section::Section(constxml::node::const_iterator&, IniFile&)
../../src/include/IniFile.h:59: note:
IniFile::Section::Section(constxml::node::iterator&, IniFile&)
Although there is no space in front of the 'const' here, I expect
this to be solved when the 'const' qualifier is just *always* put
on the righthand side of the type, even if that type is not a pointer
or reference. Thus,
IniFile::Section::Section(xml::node::iterator const&, IniFile&)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15169