From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17112 invoked by alias); 26 Jul 2010 14:15:48 -0000 Received: (qmail 16747 invoked by uid 48); 26 Jul 2010 14:15:31 -0000 Date: Mon, 26 Jul 2010 14:15:00 -0000 Subject: [Bug c/45079] New: function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression') X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "doko at ubuntu dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg02864.txt.bz2 4.4 doesn't print the function names in the error message, while 4.5 and 4.6 do so: $ cat foo.c void foo(const char *p, int cond, int a, int b) { p[cond ? a : b] = '\0'; } $ gcc-4.4 -c foo.c foo.c: In function 'foo': foo.c:3: error: assignment of read-only location '*(p + (cond != 0 ? (long unsigned int)(long unsigned int)a : (long unsigned int)(long unsigned int)b))' $ gcc-4.5 -c foo.c #'c_maybe_const_expr' not supported by pp_c_expression#) != 0 ? (long unsigned int)a : (long unsigned int)b) * 1ul))'foo.c: In function 'foo': foo.c:3:2: error: assignment of read-only location is the new format expected? -- Summary: function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression') Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: doko at ubuntu dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45079