From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8094 invoked by alias); 27 Dec 2002 23:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8072 invoked by uid 71); 27 Dec 2002 23:36:01 -0000 Resent-Date: 27 Dec 2002 23:36:01 -0000 Resent-Message-ID: <20021227233601.8071.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, Anthony DeRobertis Resent-Reply-To: gcc-gnats@gcc.gnu.org, 122103@bugs.debian.org Received: (qmail 6906 invoked from network); 27 Dec 2002 23:27:10 -0000 Received: from unknown (HELO hirsch.in-berlin.de) (192.109.42.6) by 209.249.29.67 with SMTP; 27 Dec 2002 23:27:10 -0000 Received: from tango.net.local (mail@dsl-213-023-039-145.arcor-ip.net [213.23.39.145]) (authenticated bits=0) by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id gBRNQvXR029486 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT); Sat, 28 Dec 2002 00:26:58 +0100 Received: from doko by tango.net.local with local (Exim 4.12 #1 (Debian) [+araqnid]) id 18S3sW-0003i1-00; Sat, 28 Dec 2002 00:26:56 +0100 Message-Id: Date: Fri, 27 Dec 2002 15:36:00 -0000 From: Matthias Klose Reply-To: 122103@bugs.debian.org To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org X-Send-Pr-Version: 3.113 X-GNATS-Notify: Anthony DeRobertis Subject: other/9071: Warning for blocks not closed in same file as opened in X-SW-Source: 2002-12/txt/msg01327.txt.bz2 List-Id: >Number: 9071 >Category: other >Synopsis: Warning for blocks not closed in same file as opened in >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: change-request >Submitter-Id: net >Arrival-Date: Fri Dec 27 15:36:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Anthony DeRobertis >Release: 3.2.1 (Debian) (Debian unstable) >Organization: The Debian Project >Environment: System: Debian GNU/Linux (unstable) Architecture: i686 host: i386-linux Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux Thread model: posix gcc version 3.2.2 20021212 (Debian prerelease) >Description: [ Reported to the Debian BTS as report #122103. Please CC 122103@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/122103 ] Accidentally leaving the close brace off of a block in e.g., a header file will often result in errors in files that include it, without any indication of what is wrong. For example, leaving a namespace open will usually just give a parse error at the end of the including file. I'd appreciate it if a warning were issued at the end of a file if there are still any blocks open. I realize that leaving a block open through a file ending is not a violation of the ISO standard's letter or spirit; however, I believe it is usually a mistake, and one that is otherwise hard to track down. A compiler warning would make tracking it down much easier, and is unlikely to give any false alarms. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: