* explicit dtor call and typedefs
@ 1998-05-07 6:36 Maurizio Vitale
0 siblings, 0 replies; only message in thread
From: Maurizio Vitale @ 1998-05-07 6:36 UTC (permalink / raw)
To: egcs; +Cc: egcs
The following message is a courtesy copy of an article
that has been posted to comp.std.c++ as well.
is the following legal according to the latest version of the standard?
Code similar to this is used in LEDA (a library of data structures and
algorithms) and a recent snapshot of egcs [gcc version egcs-2.91.25
19980425 (gcc2 ss-980401 experimental)] doesn't like it.
class C {};
typedef C A;
main()
{
A* p = new A;
p->~A();
}
Thanks,
Maurizio
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-05-07 6:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-07 6:36 explicit dtor call and typedefs Maurizio Vitale
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).