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++/15406] New: Missing space between const keyword and type's name in GCC's error message


GCC's error messages are missing a space between const keyword and type's name.

struct A
{
  void foo (int, const A &) {}
  void bar ()
  {
    foo (*this, 1);
  }
};

wilx@logout:::~/LOS/uloha2> g++ -c testcase.cxx
testcase.cxx: In member function `void A::bar()':
testcase.cxx:6: error: no matching function for call to `A::foo(A&, int)'
testcase.cxx:3: note: candidates are: void A::foo(int, constA&)

-- 
           Summary: Missing space between const keyword and type's name in
                    GCC's 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: v dot haisman at sh dot cvut dot cz
                CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
                    cvut dot cz
 GCC build triplet: i386-unknown-freebsd4.10
  GCC host triplet: i386-unknown-freebsd4.10
GCC target triplet: i386-unknown-freebsd4.10


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15406


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