From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17626 invoked by alias); 13 Apr 2009 17:38:48 -0000 Received: (qmail 17617 invoked by uid 22791); 13 Apr 2009 17:38:46 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_43,SPF_PASS X-Spam-Check-By: sourceware.org Received: from web84001.mail.mud.yahoo.com (HELO web84001.mail.mud.yahoo.com) (68.142.206.171) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 13 Apr 2009 17:38:41 +0000 Received: (qmail 51324 invoked by uid 60001); 13 Apr 2009 17:38:39 -0000 Message-ID: <558592.50028.qm@web84001.mail.mud.yahoo.com> Received: from [98.96.143.6] by web84001.mail.mud.yahoo.com via HTTP; Mon, 13 Apr 2009 10:38:38 PDT Date: Mon, 13 Apr 2009 22:30:00 -0000 From: Arthur Schwarz Subject: messaging To: gcc@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00391.txt.bz2 In the following code fragment: # include # include # include using namespace std; void CommandLine(int argc, char** argv); int main(int argc, char** argv) { CommandLine(argc, argv[]); ifstream x.open(argv[1], ios:in); ofstream y.open(argv[1], ios::in); return 0; }; g++-4 messaging is: >> g++-4 x.cpp x.cpp: In function 'int main(int, char**)': x.cpp:8: error: expected primary-expression before ']' token x.cpp:10: error: expected primary-expression before ':' token A recommendation and reason for change is: 1: x.cpp:8 error: illegal to pass an array without subscript value as an argument The given message is accurate but non-expressive of the reason for failure. 3: cpp:10 error: illegal scope resolution operator ':' From memory, there are three uses of ':' in C++ ':' label terminator,