suspend implementation on typedef
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Fri Dec 31 20:54:00 GMT 1999
> I work on the new language PTBL : Parrallel and transactional
> behaviour language on corba interface .
> I have a lot of problems to compile generate code like that :
Thanks for your bug report. Your code contained *numerous* obvious
errors; please read
http://egcs.cygnus.com/faq.html#bugreport
before your next bug report. I'll attach a cleaned-up version of your
code below.
> I would like SECTOR and SEGMENT do not be a templates .
> I hope you will take this request and implement a new version of
> compiler gcc2.95
I'm still not sure what you want to achieve. Your code does not
compile, and never will, because it does not follow the rules of the
C++ language. If your request is to change the C++ language, then no,
we cannot and will not do that.
You are (essentially) referring to SEGMENT::LIST before it has been
declared. This cannot work.
In general, you cannot have two classes which cross-refer to nested
classes in typedefs.
I would recommend that you move the LIST types out-of and in front-of
the SEGMENT and SECTOR classes.
Hope this helps,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.cc
Type: text/x-c++
Size: 2104 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/19991231/f4d557e9/attachment.bin>
More information about the Gcc-bugs
mailing list