Article View: gnu.gcc.bug
Article #6221gcc/g++ up to 2.7.2, cast error
From: Hans Werner Strube
Date: Mon, 15 Jan 1996 00:00
Date: Mon, 15 Jan 1996 00:00
12 lines
951 bytes
951 bytes
In gcc/g++ 2.6.3 and 2.7.2 (probably all versions so far), the cast syntax type1(type2(expression)) is not understood, if there is another parenthesis before type1; e.g. (int(short(x)) + 23); If one of the two types is enclosed in parentheses (as in the old C syntax) or the outer parentheses are missing, it is accepted, e.g. ((int)(short(x)) + 23); Hans Werner Strube strube@physik3.gwdg.de Drittes Physikalisches Institut, Univ. Goettingen Buergerstr. 42-44, D-37073 Goettingen, Germany
Technical Details
Message-ID:
<9601151518.AA15522@color.physik3.gwdg.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,18aa8881668ede1f,start X-Google-Attributes: gid113d02,public From: strube@physik3.gwdg.DE (Hans Werner Strube) Subject: gcc/g++ up to 2.7.2, cast error Date: 1996/01/15 Message-ID: <9601151518.AA15522@color.physik3.gwdg.de> X-Deja-AN: 135279390 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.bug