public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12970] New: Strange class member access rules
@ 2003-11-08 22:34 v dot haisman at sh dot cvut dot cz
2003-11-08 22:37 ` [Bug c++/12970] " pinskia at gcc dot gnu dot org
2003-11-10 14:56 ` bangerth at dealii dot org
0 siblings, 2 replies; 19+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2003-11-08 22:34 UTC (permalink / raw)
To: gcc-bugs
This simple C++ program gives the following error which seems strange to me. GCC
3.3.1 compiles it fine.
$ g++ -W -Wall -o test test.cxx
test.cxx: In member function `void B<T>::foo(int)':
test.cxx:14: error: `x' undeclared (first use this function)
test.cxx:14: error: (Each undeclared identifier is reported only once for each f
unction it appears in.)
----8<----------
template <typename T>
class A
{
protected:
int x;
};
template <typename T>
class B : public A<T>
{
public:
void foo (int _x)
{
x = _x;
}
};
int main ()
{
B<int> b;
b.foo(1);
return 0;
}
----8<----------
GCC is:
Reading specs from /usr/local/lib/gcc/i686-pc-cygwin/3.4/specs
Configured with: ../srcdir/configure --enable-languages=c,c++ --enable-threads=p
osix --enable-version-specific-runtime-libs --enable-dwarf2 --with-cpu=athlon --
with-arch=athlon --without-included-gettext
Thread model: posix
gcc version 3.4 20031108 (experimental)
--
Summary: Strange class member access rules
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: v dot haisman at sh dot cvut dot cz
CC: gcc-bugs at gcc dot gnu dot org,v dot haisman at sh dot
cvut dot cz
GCC build triplet: i686-pc-cygwin
GCC host triplet: i686-pc-cygwin
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
2003-11-08 22:34 [Bug c++/12970] New: Strange class member access rules v dot haisman at sh dot cvut dot cz
@ 2003-11-08 22:37 ` pinskia at gcc dot gnu dot org
2003-11-10 14:56 ` bangerth at dealii dot org
1 sibling, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-08 22:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-08 22:37 -------
Can you read <http://gcc.gnu.org/gcc-3.4/changes.html>, GCC is correct to reject this code.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
2003-11-08 22:34 [Bug c++/12970] New: Strange class member access rules v dot haisman at sh dot cvut dot cz
2003-11-08 22:37 ` [Bug c++/12970] " pinskia at gcc dot gnu dot org
@ 2003-11-10 14:56 ` bangerth at dealii dot org
1 sibling, 0 replies; 19+ messages in thread
From: bangerth at dealii dot org @ 2003-11-10 14:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2003-11-10 14:56 -------
There's also a longer section in the non-bugs part of the manual
that explains what exactly is going on here.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (14 preceding siblings ...)
2006-01-17 21:02 ` pinskia at gcc dot gnu dot org
@ 2006-01-18 16:06 ` pinskia at gcc dot gnu dot org
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-18 16:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #18 from pinskia at gcc dot gnu dot org 2006-01-18 16:06 -------
*** Bug 25846 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vna at rts dot co dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (13 preceding siblings ...)
2006-01-13 15:51 ` pinskia at gcc dot gnu dot org
@ 2006-01-17 21:02 ` pinskia at gcc dot gnu dot org
2006-01-18 16:06 ` pinskia at gcc dot gnu dot org
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-17 21:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from pinskia at gcc dot gnu dot org 2006-01-17 21:02 -------
*** Bug 25827 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |a dot dolfen at fz-juelich
| |dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (12 preceding siblings ...)
2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:51 ` pinskia at gcc dot gnu dot org
2006-01-17 21:02 ` pinskia at gcc dot gnu dot org
2006-01-18 16:06 ` pinskia at gcc dot gnu dot org
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from pinskia at gcc dot gnu dot org 2006-01-13 15:50 -------
*** Bug 15552 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ziv at kashya dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (10 preceding siblings ...)
2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pinskia at gcc dot gnu dot org 2006-01-13 15:47 -------
*** Bug 15111 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alonsoschaich at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (11 preceding siblings ...)
2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
2006-01-13 15:51 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from pinskia at gcc dot gnu dot org 2006-01-13 15:48 -------
*** Bug 14376 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at ilm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2006-01-13 15:46 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from pinskia at gcc dot gnu dot org 2006-01-13 15:47 -------
*** Bug 15372 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bje at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from pinskia at gcc dot gnu dot org 2006-01-13 15:46 -------
*** Bug 16067 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aac76 at bellsouth dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:46 ` pinskia at gcc dot gnu dot org
2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from pinskia at gcc dot gnu dot org 2006-01-13 15:46 -------
*** Bug 16577 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pepster at users dot
| |sourceforge dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2006-01-13 15:45 -------
*** Bug 22588 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eda-qa at disemia dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
2006-01-13 15:46 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2006-01-13 15:45 -------
*** Bug 16709 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alex dot vanic at pgs dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-01-13 15:43 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-01-13 15:44 -------
*** Bug 23755 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |compi at freemail dot hu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-01-13 15:44 -------
*** Bug 23735 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dreiners at iastate dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:43 ` pinskia at gcc dot gnu dot org
2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pinskia at gcc dot gnu dot org 2006-01-13 15:43 -------
*** Bug 23908 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |michel at colorado dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
2006-01-13 15:41 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
` (13 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-13 15:41 -------
*** Bug 24960 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gashlerm at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
2006-01-13 15:41 ` pinskia at gcc dot gnu dot org
2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
@ 2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
2006-01-13 15:43 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-13 15:42 -------
*** Bug 23976 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
* [Bug c++/12970] Strange class member access rules
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
@ 2006-01-13 15:41 ` pinskia at gcc dot gnu dot org
2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
15 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-13 15:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-13 15:41 -------
*** Bug 25783 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |metcalf at lcs dot mit dot
| |edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12970
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2006-01-18 16:06 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-08 22:34 [Bug c++/12970] New: Strange class member access rules v dot haisman at sh dot cvut dot cz
2003-11-08 22:37 ` [Bug c++/12970] " pinskia at gcc dot gnu dot org
2003-11-10 14:56 ` bangerth at dealii dot org
[not found] <bug-12970-629@http.gcc.gnu.org/bugzilla/>
2006-01-13 15:41 ` pinskia at gcc dot gnu dot org
2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
2006-01-13 15:42 ` pinskia at gcc dot gnu dot org
2006-01-13 15:43 ` pinskia at gcc dot gnu dot org
2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
2006-01-13 15:44 ` pinskia at gcc dot gnu dot org
2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
2006-01-13 15:45 ` pinskia at gcc dot gnu dot org
2006-01-13 15:46 ` pinskia at gcc dot gnu dot org
2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
2006-01-13 15:47 ` pinskia at gcc dot gnu dot org
2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
2006-01-13 15:48 ` pinskia at gcc dot gnu dot org
2006-01-13 15:51 ` pinskia at gcc dot gnu dot org
2006-01-17 21:02 ` pinskia at gcc dot gnu dot org
2006-01-18 16:06 ` 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).