public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice
@ 2005-01-11 15:10 redi at gcc dot gnu dot org
2005-01-11 15:14 ` [Bug c++/19375] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: redi at gcc dot gnu dot org @ 2005-01-11 15:10 UTC (permalink / raw)
To: gcc-bugs
I'm surprised I can't find this reported already, apologies if it has been.
Given:
class A { int i; };
class B : public A { int f() { return i; } };
GCC 3.4 and up prints the same diagnostic twice:
access2.cc: In member function `int B::f()':
access2.cc:1: error: `int A::i' is private
access2.cc:3: error: within this context
access2.cc:1: error: `int A::i' is private
access2.cc:3: error: within this context
GCC 2.95 - 3.3 only printed the diagnostic once:
--
Summary: [3.4,4.0 regression] Access violation diagnostic given
twice
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: redi at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19375
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19375] [3.4/4.0 Regression] Access violation diagnostic given twice
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
@ 2005-01-11 15:14 ` pinskia at gcc dot gnu dot org
2005-01-12 11:26 ` lerdsuwa at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-11 15:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-11 15:13 -------
Confirmed. I am suprised too.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-01-11 15:13:41
date| |
Summary|[3.4,4.0 regression] Access |[3.4/4.0 Regression] Access
|violation diagnostic given |violation diagnostic given
|twice |twice
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19375
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19375] [3.4/4.0 Regression] Access violation diagnostic given twice
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
2005-01-11 15:14 ` [Bug c++/19375] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-01-12 11:26 ` lerdsuwa at gcc dot gnu dot org
2005-01-17 14:35 ` lerdsuwa at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-01-12 11:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-01-12 11:26 -------
Got it.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-01-11 15:13:41 |2005-01-12 11:26:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19375
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19375] [3.4/4.0 Regression] Access violation diagnostic given twice
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
2005-01-11 15:14 ` [Bug c++/19375] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-12 11:26 ` lerdsuwa at gcc dot gnu dot org
@ 2005-01-17 14:35 ` lerdsuwa at gcc dot gnu dot org
2005-01-19 14:30 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-01-17 14:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-01-17 14:35 -------
Patch submitted:
http://gcc.gnu.org/ml/gcc-patches/2005-01/msg01006.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19375
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19375] [3.4/4.0 Regression] Access violation diagnostic given twice
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-01-17 14:35 ` lerdsuwa at gcc dot gnu dot org
@ 2005-01-19 14:30 ` cvs-commit at gcc dot gnu dot org
2005-01-19 14:50 ` cvs-commit at gcc dot gnu dot org
2005-01-19 14:51 ` lerdsuwa at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-19 14:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-19 14:30 -------
Subject: Bug 19375
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: lerdsuwa@gcc.gnu.org 2005-01-19 14:30:24
Modified files:
gcc/cp : ChangeLog semantics.c
Log message:
PR c++/19375
* semantics.c (finish_id_expression): Disable access checking for
already lookuped FIELD_DECL.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4585&r2=1.4586
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&r1=1.456&r2=1.457
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19375
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19375] [3.4/4.0 Regression] Access violation diagnostic given twice
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-01-19 14:30 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-19 14:50 ` cvs-commit at gcc dot gnu dot org
2005-01-19 14:51 ` lerdsuwa at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-19 14:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-01-19 14:50 -------
Subject: Bug 19375
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: lerdsuwa@gcc.gnu.org 2005-01-19 14:50:27
Modified files:
gcc/cp : ChangeLog semantics.c
Log message:
PR c++/19375
* semantics.c (finish_id_expression): Disable access checking for
already lookuped FIELD_DECL.
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.191&r2=1.3892.2.192
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/semantics.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.381.4.16&r2=1.381.4.17
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19375
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19375] [3.4/4.0 Regression] Access violation diagnostic given twice
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-01-19 14:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-19 14:51 ` lerdsuwa at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2005-01-19 14:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-01-19 14:51 -------
Fixed in 3.4 branch and mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19375
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-01-19 14:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-11 15:10 [Bug c++/19375] New: [3.4,4.0 regression] Access violation diagnostic given twice redi at gcc dot gnu dot org
2005-01-11 15:14 ` [Bug c++/19375] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-12 11:26 ` lerdsuwa at gcc dot gnu dot org
2005-01-17 14:35 ` lerdsuwa at gcc dot gnu dot org
2005-01-19 14:30 ` cvs-commit at gcc dot gnu dot org
2005-01-19 14:50 ` cvs-commit at gcc dot gnu dot org
2005-01-19 14:51 ` lerdsuwa 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).