www.digitalmars.com         C & C++   DMDScript  

c++ - strange problem

reply Michael <Michael_member pathlink.com> writes:
I can't help trying the latest version of dmc, however I run into a strang
problem. What I do is below:
//aaa.cpp
typedef char BlockSet[13];
int Friend_block(const BlockSet& b)
{ ... }
dmc aaa.cpp. It says:
int Friend_block(const BlockSet& b)
^
error: type qualifiers and static can only appear in outermost array of function
parameter

however when I delete "const", It works well, and under mingw no problem occurs.
Sep 10 2005
parent "Walter Bright" <newshound digitalmars.com> writes:
Thanks, it's a bug. I'll add it to the queue to be fixed. -Walter
Sep 12 2005