From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17304 invoked by alias); 7 Jul 2005 03:40:39 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 17295 invoked by uid 22791); 7 Jul 2005 03:40:36 -0000 Received: from rwcrmhc13.comcast.net (HELO rwcrmhc12.comcast.net) (204.127.198.39) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 07 Jul 2005 03:40:36 +0000 Received: from [192.168.1.100] (c-67-182-220-146.hsd1.ut.comcast.net[67.182.220.146]) by comcast.net (rwcrmhc13) with ESMTP id <2005070703403101500jeftle>; Thu, 7 Jul 2005 03:40:31 +0000 Message-ID: <42CCA460.8070009@kangaroologic.com> Date: Thu, 07 Jul 2005 03:40:00 -0000 From: Jonathan Turkanis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: What is the purpose of 'warning: no newline at end of file'? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-07/txt/msg00059.txt.bz2 Neo Anderson wrote: > I don't even think it's a problem. Why do I need (or better have) a line > ending? The C++ standard says: If a source file that is not empty does not end in a newline character, or ends in a newline character immediately preceded by a backslash character, the behavior is undefined. (2.1/1) Jonathan