Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Hans Werner Strube
Mon, 15 Jan 1996 00:00
gcc/g++ up to 2.7.2, cast error
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads