Bug 10816 - [3.3/3.4 regression] warning message refers to lines which don't exist
Summary: [3.3/3.4 regression] warning message refers to lines which don't exist
Status: RESOLVED DUPLICATE of bug 10888
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.3
: P3 normal
Target Milestone: 3.3.1
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2003-05-16 09:46 UTC by joerg.reuter
Modified: 2004-01-17 04:22 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
fct.tar.gz (98.11 KB, application/x-gzip )
2003-05-21 15:17 UTC, joerg.reuter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Bangerth 2003-05-16 09:44:09 UTC
From: Wolfgang Bangerth <bangerth@ices.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/10816
Date: Fri, 16 May 2003 09:44:09 -0500 (CDT)

 It's hard to tell, since gcc3.2.3 doesn't print _any_ warning messages on 
 the code. But I have never seen such a bug for pre-3.3, so I think it must 
 be a regression. 3.4 shows the same behavior with today's header files, 
 but prints only one warning.
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth              email:            bangerth@ices.utexas.edu
                                www: http://www.ices.utexas.edu/~bangerth/
 
 
Comment 1 joerg.reuter 2003-05-16 09:46:00 UTC
The warning messages (see attached make.log) refer to lines (numbers 583, 453, ...) which don't exist in file fct.C.

Release:
3.3

Environment:
Reading specs from /usr/local/gcc-3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../src/configure --prefix=/usr/local/gcc-3.3 --enable-languages=c,c++
Thread model: posix
gcc version 3.3

How-To-Repeat:
g++ -O -Winline -c fct.C
Comment 2 Christian Ehrhardt 2003-05-16 13:19:16 UTC
From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: gcc-prs@gcc.gnu.org, joerg.reuter@voith.com, gcc-bugs@gcc.gnu.org,
  gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/10816: warning message refers to lines which don't exist
Date: Fri, 16 May 2003 13:19:16 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10816
 
 Confirmed with 3.3 on sparc-sun-solaris! Funny bug indeed. The
 line numbers are correct but they are reported for the wrong file.
 
     regards  Christian
 
 -- 
 THAT'S ALL FOLKS!

Comment 3 Wolfgang Bangerth 2003-05-20 01:03:19 UTC
State-Changed-From-To: open->analyzed
State-Changed-Why: Has been analyzed before.
Comment 4 Giovanni Bajo 2003-06-21 17:36:24 UTC
Diagnostic mantainer
Comment 5 Mark Mitchell 2003-07-11 23:14:28 UTC
Postponed until GCC 3.3.2.
Comment 6 Andrew Pinski 2003-08-05 04:36:55 UTC
Was already fixed in 3.3.1 (20030707), really this is a dup of bug 10888

*** This bug has been marked as a duplicate of 10888 ***