www.digitalmars.com         C & C++   DMDScript  

c++ - Bug in "int(int(10));"?

reply Michel <MichelHelms Web.de> writes:
Hi,

I'm currently doing automatic code-generation and stumbled over a this: My
code generates "int(int(10));" which produces the compiler-error "Error: '=',
';' or ',' expected".

To reproduce this behaviour:
int main()
{
	int(int(10));
}

I have no idea whether this is a bug since I do not now the standard in such a
detail but at least MSVC++ 8.0 & 9.0 and the Comeau-compiler don't complain.
I'm using the DMC version 8.42n on Windows Vista.

Greetings,
Michel
Jul 16 2009
parent Walter Bright <newshound1 digitalmars.com> writes:
Please post to http://bugzilla.digitalmars.com/issues/

Thanks!
Aug 02 2009