public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13560] New: wrong file name in error message
@ 2004-01-04 3:18 pinskia at gcc dot gnu dot org
2004-01-04 3:20 ` [Bug c++/13560] " pinskia at gcc dot gnu dot org
` (16 more replies)
0 siblings, 17 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-04 3:18 UTC (permalink / raw)
To: gcc-bugs
Compile the following and you will get:
test.h: In function `int main()':
test.h:3: error: `int t::g' is private
test.cc:7: error: within this context
See how it says main is in test.h, this is wrong.
The problem is in cp_error_at set the location information but since the "In function ..."
has not been printed yet for this function so it prints with the location information which
cp_error_at sets which is wrong, one way to fix this is to add a new location_t to
diagnostic_info to store the old one for printing out the "In function ..." message.
----- preprocessed source -----
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.cc"
# 1 "test.h" 1
class t
{
int g;
};
void h(t&);
# 2 "test.cc" 2
int main()
{
t y;
h(y);
return y.g;
}
--
Summary: wrong file name in error message
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c++
AssignedTo: gdr at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: carlo at alinoe dot com,gcc-bugs at gcc dot gnu dot
org,igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
@ 2004-01-04 3:20 ` pinskia at gcc dot gnu dot org
2004-01-06 15:16 ` [Bug c++/13560] [3.3/3.4 regression] " bangerth at dealii dot org
` (15 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-04 3:20 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
2004-01-04 3:20 ` [Bug c++/13560] " pinskia at gcc dot gnu dot org
@ 2004-01-06 15:16 ` bangerth at dealii dot org
2004-01-06 20:58 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: bangerth at dealii dot org @ 2004-01-06 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-01-06 15:16 -------
Confirmed. This is actually a regression, since things worked with
2.95 as expected.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-06 15:16:33
date| |
Summary|wrong file name in error |[3.3/3.4 regression] wrong
|message |file name in error message
Target Milestone|--- |3.3.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
2004-01-04 3:20 ` [Bug c++/13560] " pinskia at gcc dot gnu dot org
2004-01-06 15:16 ` [Bug c++/13560] [3.3/3.4 regression] " bangerth at dealii dot org
@ 2004-01-06 20:58 ` pinskia at gcc dot gnu dot org
2004-01-11 1:17 ` pinskia at gcc dot gnu dot org
` (13 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-06 20:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-06 20:58 -------
It has been failing since at least 2000-12-31.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|NEW |ASSIGNED
Version|unknown |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-01-06 20:58 ` pinskia at gcc dot gnu dot org
@ 2004-01-11 1:17 ` pinskia at gcc dot gnu dot org
2004-01-12 20:06 ` bangerth at dealii dot org
` (12 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-11 1:17 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.3.3 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-01-11 1:17 ` pinskia at gcc dot gnu dot org
@ 2004-01-12 20:06 ` bangerth at dealii dot org
2004-01-13 4:28 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: bangerth at dealii dot org @ 2004-01-12 20:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-01-12 20:06 ` bangerth at dealii dot org
@ 2004-01-13 4:28 ` pinskia at gcc dot gnu dot org
2004-01-14 5:40 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-13 4:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-13 04:28 -------
This bug is picky it really could be almost be called an enhancement, I filed this not
knowing it was a regression, I just hoped someone would see it and fix it someday and
not really block 3.4 at all so I am moving it to 3.4.1 based on I filed it.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-01-13 4:28 ` pinskia at gcc dot gnu dot org
@ 2004-01-14 5:40 ` pinskia at gcc dot gnu dot org
2004-03-02 5:51 ` [Bug c++/13560] [3.3/3.4/3.5 " mmitchel at gcc dot gnu dot org
` (9 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-14 5:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4/3.5 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-01-14 5:40 ` pinskia at gcc dot gnu dot org
@ 2004-03-02 5:51 ` mmitchel at gcc dot gnu dot org
2004-06-09 19:24 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-03-02 5:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-03-02 05:50 -------
This is certainly not a showstopper, so I've moved the target milestone back to
3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4/3.5 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-03-02 5:51 ` [Bug c++/13560] [3.3/3.4/3.5 " mmitchel at gcc dot gnu dot org
@ 2004-06-09 19:24 ` mmitchel at gcc dot gnu dot org
2004-06-18 23:46 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-09 19:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-06-09 19:24 -------
Gaby --
What's the status on this bug?
-- Mark
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4/3.5 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-06-09 19:24 ` mmitchel at gcc dot gnu dot org
@ 2004-06-18 23:46 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:51 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-06-18 23:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-06-18 23:46 -------
Postponed until GCC 3.4.2.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.1 |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4/3.5 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (9 preceding siblings ...)
2004-06-18 23:46 ` mmitchel at gcc dot gnu dot org
@ 2004-08-29 18:51 ` mmitchel at gcc dot gnu dot org
2004-10-09 1:28 ` [Bug c++/13560] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-29 18:51 -------
Postponed until GCC 3.4.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4/4.0 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (10 preceding siblings ...)
2004-08-29 18:51 ` mmitchel at gcc dot gnu dot org
@ 2004-10-09 1:28 ` pinskia at gcc dot gnu dot org
2004-10-21 16:15 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-09 1:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-09 01:28 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00800.html>.
Mine.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|gdr at gcc dot gnu dot org |pinskia at gcc dot gnu dot
| |org
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4/4.0 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (11 preceding siblings ...)
2004-10-09 1:28 ` [Bug c++/13560] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-10-21 16:15 ` cvs-commit at gcc dot gnu dot org
2004-10-21 16:16 ` [Bug c++/13560] [3.3/3.4 " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-21 16:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-21 16:14 -------
Subject: Bug 13560
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-10-21 16:14:33
Modified files:
gcc/cp : ChangeLog error.c
Log message:
2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/13560
* error.c (cp_error_at): Output the context as it might be
different file as the other location.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4449&r2=1.4450
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&r1=1.267&r2=1.268
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (12 preceding siblings ...)
2004-10-21 16:15 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-21 16:16 ` pinskia at gcc dot gnu dot org
2004-10-28 3:49 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-21 16:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-21 16:16 -------
Fixed on the mainline, I will post a back port soon.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3/3.4/4.0 regression] |[3.3/3.4 regression] wrong
|wrong file name in error |file name in error message
|message |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3/3.4 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (13 preceding siblings ...)
2004-10-21 16:16 ` [Bug c++/13560] [3.3/3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-28 3:49 ` cvs-commit at gcc dot gnu dot org
2004-10-28 3:50 ` [Bug c++/13560] [3.3 " pinskia at gcc dot gnu dot org
2005-04-30 14:31 ` gdr at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-28 3:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-28 03:49 -------
Subject: Bug 13560
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: pinskia@gcc.gnu.org 2004-10-28 03:49:41
Modified files:
gcc/cp : ChangeLog error.c
Log message:
2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/13560
* error.c (cp_error_at): Output the context as it might be
different file as the other location.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.173&r2=1.3892.2.174
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/error.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.241.4.8&r2=1.241.4.9
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (14 preceding siblings ...)
2004-10-28 3:49 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-28 3:50 ` pinskia at gcc dot gnu dot org
2005-04-30 14:31 ` gdr at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-28 3:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-28 03:50 -------
Fixed also in 3.4.3, Gaby is this okay to apply to the 3.3 branch when it opens up again?
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at gcc dot gnu dot org
Summary|[3.3/3.4 regression] wrong |[3.3 regression] wrong file
|file name in error message |name in error message
Target Milestone|3.4.3 |3.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/13560] [3.3 regression] wrong file name in error message
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
` (15 preceding siblings ...)
2004-10-28 3:50 ` [Bug c++/13560] [3.3 " pinskia at gcc dot gnu dot org
@ 2005-04-30 14:31 ` gdr at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-04-30 14:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at gcc dot gnu dot org 2005-04-30 14:31 -------
(In reply to comment #12)
> Fixed also in 3.4.3, Gaby is this okay to apply to the 3.3 branch when it
opens up again?
This patch does not seem to apply cleanly to 3.3.6 which as a different logic.
will close as won't fix for 3.3.6.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|3.3.6 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13560
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2005-04-30 14:31 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-04 3:18 [Bug c++/13560] New: wrong file name in error message pinskia at gcc dot gnu dot org
2004-01-04 3:20 ` [Bug c++/13560] " pinskia at gcc dot gnu dot org
2004-01-06 15:16 ` [Bug c++/13560] [3.3/3.4 regression] " bangerth at dealii dot org
2004-01-06 20:58 ` pinskia at gcc dot gnu dot org
2004-01-11 1:17 ` pinskia at gcc dot gnu dot org
2004-01-12 20:06 ` bangerth at dealii dot org
2004-01-13 4:28 ` pinskia at gcc dot gnu dot org
2004-01-14 5:40 ` pinskia at gcc dot gnu dot org
2004-03-02 5:51 ` [Bug c++/13560] [3.3/3.4/3.5 " mmitchel at gcc dot gnu dot org
2004-06-09 19:24 ` mmitchel at gcc dot gnu dot org
2004-06-18 23:46 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:51 ` mmitchel at gcc dot gnu dot org
2004-10-09 1:28 ` [Bug c++/13560] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
2004-10-21 16:15 ` cvs-commit at gcc dot gnu dot org
2004-10-21 16:16 ` [Bug c++/13560] [3.3/3.4 " pinskia at gcc dot gnu dot org
2004-10-28 3:49 ` cvs-commit at gcc dot gnu dot org
2004-10-28 3:50 ` [Bug c++/13560] [3.3 " pinskia at gcc dot gnu dot org
2005-04-30 14:31 ` gdr at gcc dot gnu dot org
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).