public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7855: Wrong line number specified in error / warning message
@ 2002-09-13  9:39 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-13  9:39 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jfischer110, nobody

Synopsis: Wrong line number specified in error / warning message

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 09:39:39 2002
State-Changed-Why:
    confirmed

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7855


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/7855: Wrong line number specified in error / warning message
@ 2002-09-08  3:06 jfischer110
  0 siblings, 0 replies; 2+ messages in thread
From: jfischer110 @ 2002-09-08  3:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7855
>Category:       c++
>Synopsis:       Wrong line number specified in error / warning message
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 08 03:06:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jim Fischer
>Release:        3.2
>Organization:
>Environment:
System: Linux pluto 2.4.18-10 #1 Wed Aug 7 11:39:21 EDT 2002 i686 unknown
Architecture: i686

        <machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.2/configure --with-local-prefix=/usr --enable-threads --enable-version-specific-runtime-libs --enable-languages=c,c++
>Description:
When I try to assign the address of a static class member function to a non-static member function pointer, the compiler correctly emits an error message (this is an illegal pointer assignment), but the line number that's specified in the error message identifies the line that's just below the line that contains the actual error:

  /* n */  Line 'n' has the bogus pointer assignment
  /* n+1 */  This is the line the g++ error message id's

And for some strange reason, g++ 3.2 also emits an "unused variable" warning for line 'n' (the line that has the bogus pointer assignment) -- see the attached code sample.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-gzip; name="err-msg-wrong-line-number.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="err-msg-wrong-line-number.tgz"

H4sIAMweez0AA+1XbW/bNhDO1/BXHIp0tZLIlpTEBpxlaJp5XTdnDZJiy9AWLS3RNlua0kgpaRfk
v+9IvcaNG2ANWgzTg8A6k8+98I6+i5hS7kLP3EsVy5kruGSuzBYTpnpr9wbP2/UGgz18et6gv3vj
WWDNG+zt9Pv+IBj4a57fD7zBGuzdXwirkemUKoC1d1OuwzlTq3h37f9HwVbWf5JxEXVFPPtiH57v
ef2lujfq7/tev67/Ht6TAFf7a+Ddw/nuxP+8/gv6nkGqPhIjvPRfD2EkU6a4nEHEFQvTWH2Et715
vGA9/EvZIumFW1u9mczwhsx0b+UFekR6mVY9EYdU9CZc9mZbWwDus8Yql6HIItbTqUhilYJLpebg
Pgd3GrEpzUTqcmlMgvsHFQI/0VuswA1hQbnshkkCbpzLMSmXhvBMwjSTYcpjCW+5TC2j4zwa1pwg
GEJIpYxTCGN5wdD724uYR9DZdDpG2HQgnav4ElAP0rjcPR8OK8IjIADAJf7xlFPB/6bGJQlDPxGZ
HsIlVRIzqWHCTEJTxWjKIqAa7Dl0Ixy/Yg8hk5lG2gVVnE4Ea7o+CSrndcU2NzfhZZ6E1zCyGfLr
3TGjF/dSTmOxcJbMqWZB6Swg3/oWt/i3WN3/y7v55T7u6v87/Xr+4zRA/qAf7Lb9/2sgFFRrOIcr
kmQTwcOhaWmAOUl5CLbvxAlTFPsGREywlEHHLm9C0R87zr5VsdzpLZvX+4TUPZhcWfY5fMBlI/V6
8GLONSQxN4MHm6PmM7lgqIGrF9hVo22gMgIZY6deJFwwVSrmXRSoYjBj0oSJbbOTzhmwDwk2O/w2
YXNsf7FyhnWUtpMmftXnD+A7XJk2A2IwjYWIL03jvBkRlzYm6PAUGzpnGodDqZczwQRAo0gxzGw8
BVqmc8HMD6seTQ1FPJ10V9CKzDhdMBN0pxtUx1/wFE8v8zygntZ0ZiJXGAKGWge+DZMsLdUwcBy8
sTLjQHwEjZniU3sQkzhrys7cvA+glVIxCOByzqQxoOdxJkx2ASfXUmbrGVVkdukG7UNpz7eanQ9d
Ww3PqXeCqhaHQsfb5cnrIz9YGpIPyvFZ6k2XjhH4XSDX7aRawur+f4zjfoq/ti/3cUf/D3Z3/LL/
7+0OPNv/d3fa/v81QF4cnj4dvVg/sC8B5Oz06M3RyQl+fUXWq/+xXxUbuEzIj6OTgrLRSWiqs4lO
4aHhbT/sRuax0SnMOE7O/oRrmSUvZ51ZUmHcKUWHkOdPfrnNX5Q7jLdrJSfnfsps8nJW7q0w7ZQi
ejs6WoeD5ReXMMT1n8aHT89wk6CGlY14fg638Le2zE5Buo83HjIuvbvjhjXBJ2T87IldF4XJNxgt
uCLB+ctoRMjp8fqBjUot0AkhxuowT++ZA/k/8oR0T35+/tufuBEKpUNF8gcMyfpj688YCAWjqkEt
dPOHoW50jg9/HZls5pcK01mJ1qdJvGN4mB1DK5Nk5HElWZZ5r9t4bNbxfGiIT9lf0PG2N66Mj/Ho
99H42iFYVzRsSry+D5X7x431JLm5w4Rm1XZoYzmyoRRFtfJRIeJ75sb3eSS1TpI0T9BUq07T1GMy
4tPV8UdhbtXMq5Bhuj8f0LEx/EMejzlcGVJT/bOR1QaKwKpy5hbsJxazeSMYxXda84nfsFnOWPom
/xpP3hVSxJJcaig2qeSG3tAGenqMsV3l9+O6oVdZJbX9hkZxi2p+7buSbvDtTTcVkLeVwC1+khWx
yMu3bswtWrRo0aJFixYtWrRo0aJFixYtWtwD/gGuanovACgAAA==


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-13 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13  9:39 c++/7855: Wrong line number specified in error / warning message nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-09-08  3:06 jfischer110

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).