public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11986] New: forward declaration error
@ 2003-08-19 22:09 kemin dot zhou at ferring dot com
2003-08-19 22:19 ` [Bug c++/11986] " bangerth at dealii dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: kemin dot zhou at ferring dot com @ 2003-08-19 22:09 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11986
Summary: forward declaration error
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kemin dot zhou at ferring dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux
GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux
when two classes have inter dependency, compiler could not compile.
The exact same code can be compiled with no problem with gcc3.2.2
After upgrading to gcc3.3.1, the same code would not compile:
the basic class lay out is like this:
class B; // the forward declaration, stopped working in 3.3.1
class A {
vector<B> bvec;
};
class B {
public:
void method(A& a);
private:
int someMembers;
};
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/11986] forward declaration error
2003-08-19 22:09 [Bug c++/11986] New: forward declaration error kemin dot zhou at ferring dot com
@ 2003-08-19 22:19 ` bangerth at dealii dot org
2003-08-23 17:42 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2003-08-19 22:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11986
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From bangerth at dealii dot org 2003-08-19 22:19 -------
The code you give is incomplete, and you also didn't give the exact command line
to compile it. We can't do much without this information. Please review
http://gcc.gnu.org/bugs.html
to see what we need.
In any case, your code may not be valid. A similar problem is discussed in PR 10505, see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10505
W.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/11986] forward declaration error
2003-08-19 22:09 [Bug c++/11986] New: forward declaration error kemin dot zhou at ferring dot com
2003-08-19 22:19 ` [Bug c++/11986] " bangerth at dealii dot org
@ 2003-08-23 17:42 ` pinskia at gcc dot gnu dot org
2003-08-24 1:19 ` pinskia at gcc dot gnu dot org
2003-09-28 21:33 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23 17:42 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11986
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/11986] forward declaration error
2003-08-19 22:09 [Bug c++/11986] New: forward declaration error kemin dot zhou at ferring dot com
2003-08-19 22:19 ` [Bug c++/11986] " bangerth at dealii dot org
2003-08-23 17:42 ` pinskia at gcc dot gnu dot org
@ 2003-08-24 1:19 ` pinskia at gcc dot gnu dot org
2003-09-28 21:33 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-24 1:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11986
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/11986] forward declaration error
2003-08-19 22:09 [Bug c++/11986] New: forward declaration error kemin dot zhou at ferring dot com
` (2 preceding siblings ...)
2003-08-24 1:19 ` pinskia at gcc dot gnu dot org
@ 2003-09-28 21:33 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-28 21:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11986
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-09-28 21:24 -------
I am just going to say this is a dup of bug 10505 from the comments.
*** This bug has been marked as a duplicate of 10505 ***
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-09-28 21:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-19 22:09 [Bug c++/11986] New: forward declaration error kemin dot zhou at ferring dot com
2003-08-19 22:19 ` [Bug c++/11986] " bangerth at dealii dot org
2003-08-23 17:42 ` pinskia at gcc dot gnu dot org
2003-08-24 1:19 ` pinskia at gcc dot gnu dot org
2003-09-28 21:33 ` 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).