www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - strange problem

↑ ↓ ← 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
↑ ↓ → "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