Debian Bug report logs - #358050
line number in extra qualification error not ideal (end of declaration)

version graph

Package: g++; Maintainer for g++ is Debian GCC Maintainers <[email protected]>; Source for g++ is src:gcc-defaults (PTS, buildd, popcon).

Reported by: Martin Michlmayr <[email protected]>

Date: Tue, 21 Mar 2006 00:18:07 UTC

Severity: minor

Tags: fixed-upstream, upstream

Fixed in version 4.4.0-1

Forwarded to http://gcc.gnu.org/PR26785

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian GCC Maintainers <[email protected]>:
Bug#358050; Package g++-4.1. (full text, mbox, link).


Acknowledgement sent to Martin Michlmayr <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Martin Michlmayr <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: line number in extra qualification error not ideal (end of declaration)
Date: Mon, 20 Mar 2006 23:34:49 +0000
Package: g++-4.1
Version: 4.1.0-0
Severity: minor

The line number mentioned in the "extra qualification" error is not
ideal.  Instead of showing the line number on which the extra
qualification actually occurs, or should the last line of the
declaration.


(sid)6102:tbm@deprecation: ~] cat > test.cpp
class foo {
    foo::foo(int a,
             int b,
             int c);
};

int main() {
}
(sid)6103:tbm@deprecation: ~] g++ test.cpp
test.cpp:4: error: extra qualification ‘foo::’ on member ‘foo’

I'd like to see "test.cpp:2: ..." here.

Presumably it checks things like that after reading a complete
declaration.  I would have thought it could track what the first line
of the declaration was though.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-rc5-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

-- 
Martin Michlmayr
http://www.cyrius.com/



Information forwarded to [email protected], Debian GCC Maintainers <[email protected]>:
Bug#358050; Package g++-4.1. (full text, mbox, link).


Acknowledgement sent to Martin Michlmayr <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <[email protected]>. (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Martin Michlmayr <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: forwarded
Date: Tue, 21 Mar 2006 17:03:52 +0000
forwarded 358050 http://gcc.gnu.org/PR26785
thanks

I've forwarded this now.

-- 
Martin Michlmayr
http://www.cyrius.com/



Noted your statement that Bug has been forwarded to http://gcc.gnu.org/PR26785. Request was from Martin Michlmayr <[email protected]> to [email protected]. (full text, mbox, link).


Tags added: upstream Request was from [email protected] to [email protected]. (full text, mbox, link).


Bug reassigned from package `g++-4.1' to `g++'. Request was from Matthias Klose <[email protected]> to [email protected]. (Wed, 23 Jan 2008 18:18:28 GMT) (full text, mbox, link).


Tags added: fixed-upstream Request was from [email protected] to [email protected]. (Sat, 16 Aug 2008 20:06:46 GMT) (full text, mbox, link).


Bug marked as fixed in version 4.4.0-1. Request was from Martin Michlmayr <[email protected]> to [email protected]. (Mon, 11 May 2009 17:27:15 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 13:57:40 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.