public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14894] New: gcc 3.3.2 fails to diagnose access violation taking address of protected member
@ 2004-04-08 18:15 sebor at roguewave dot com
2004-04-08 18:43 ` [Bug c++/14894] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: sebor at roguewave dot com @ 2004-04-08 18:15 UTC (permalink / raw)
To: gcc-bugs
Gcc 3.3.2 fails to diagnose the ill-formed program below. I didn't try gcc 3.4.
$ cat t.cpp && gcc --version && gcc -c -pedantic t.cpp
struct A {
protected:
static void foo () { }
void bar () { }
};
struct B: A
{
static void foobar () {
void (*pf)() = &A::foo;
void (A::*pm)() = &A::bar; // ill-formed
}
};
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--
Summary: gcc 3.3.2 fails to diagnose access violation taking
address of protected member
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sebor at roguewave dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14894
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/14894] gcc 3.3.2 fails to diagnose access violation taking address of protected member
2004-04-08 18:15 [Bug c++/14894] New: gcc 3.3.2 fails to diagnose access violation taking address of protected member sebor at roguewave dot com
@ 2004-04-08 18:43 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-08 18:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-08 18:43 -------
This is a dup of bug 11174.
*** This bug has been marked as a duplicate of 11174 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14894
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-08 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-08 18:15 [Bug c++/14894] New: gcc 3.3.2 fails to diagnose access violation taking address of protected member sebor at roguewave dot com
2004-04-08 18:43 ` [Bug c++/14894] " pinskia 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).