From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maurizio Vitale To: egcs@cygnus.com Cc: egcs@cygnus.com Subject: explicit dtor call and typedefs Date: Thu, 07 May 1998 06:36:00 -0000 Message-id: <87ogxayzfn.fsf@naxos.esat.kuleuven.ac.be> X-SW-Source: 1998-05/msg00238.html 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