From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31246 invoked by alias); 26 Jan 2004 17:59:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31219 invoked by uid 48); 26 Jan 2004 17:59:18 -0000 Date: Mon, 26 Jan 2004 17:59:00 -0000 Message-ID: <20040126175918.31218.qmail@sources.redhat.com> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040126172022.13868.joerg.richter@pdv-fs.de> References: <20040126172022.13868.joerg.richter@pdv-fs.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13868] Conditional expression operator and implicit char array conversion X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg03298.txt.bz2 List-Id: ------- Additional Comments From bangerth at dealii dot org 2004-01-26 17:59 ------- I'm not sure if 5.16/3 applies. The second argument to the ?: operator has type "const char[3]", and the third one can be converted to "char[4]". When I change this, then gcc accepts the code. On the other hand, 5.16/6 talks about array to pointer conversions. FWIW, icc accepts the code. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13868