🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3529

Re: Is this legal?

#3529
From: David Byrden
Date: Wed, 28 Feb 1996 00:17
30 lines
1421 bytes
>>>>>>>
void main(void)
{
    T<int>* pA = nil;
    dynamic_cast < T<int>* > (pA);
}

Our compiler reports this error:
Error   : illegal use of incomplete struct/union/class
x.cp line 12   dynamic_cast < T<int>* > (pA);
<<<<<<<<<<


  Your compiler is not in agreement with the January 1996 draft standard, 
and I quote;



5.2.6.3  If the type of [the pointer] is the same as the required result 
type........the result is v (converted if necessary).


                                        David
---
[ To submit articles: try just posting with your news-reader.
                      If that fails, use mailto:std-c++@ncar.ucar.edu
  FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu.
]
Technical Details
Message-ID: <4gvdu0$ccf@news.bridge.net>
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
References: <rice-2602962041230001@luna.tiac.net>

Show Full Headers
Complete Article Headers
From: David Byrden <100101.2547@compuserve.com>
Message-ID: <4gvdu0$ccf@news.bridge.net>
X-Original-Date: 27 Feb 1996 17:10:24 GMT
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back
Date: 28 Feb 96 00:17:30 GMT
Approved: fjh@cs.mu.oz.au
Newsgroups: comp.std.c++
Subject: Re: Is this legal?
Organization: self-employed
References: <rice-2602962041230001@luna.tiac.net>
X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMTOfJ+EDnX0m9pzZAQESHQF/XOez64jz1VVbXPnz6rEI+Dx2Cd2G10ar
 twcLaTgvewJzIa/gAd6ujPByJiz10auk
 =OSeO