This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++: delete of incomplete type is undefined, not ill-formed


>>>>> "Fergus" == Fergus Henderson <fjh@cs.mu.OZ.AU> writes:

> On 16-May-2002, Alexandre Oliva <aoliva@redhat.com> wrote:
>> On May 16, 2002, Gabriel Dos Reis <gdr@codesourcery.com> wrote:
>> >   1.3.12 undefined behavior 
>> 
>> Thanks for reminding me that undefined behavior can indeed abort the
>> translation of the program.  I keep forgetting this :-(

> Only if the undefined behaviour actually occurs.

I disagree.  The standard imposes no requirements whatsoever; if a
particular construct would always have undefined behaviour, printing a
diagnostic at translation time is a valid interpretation whether or not the
translator can prove that the construct is executed.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]