www.digitalmars.com         C & C++   DMDScript  

c++ - [bug] Another static array size bug

The compiler erroneously turns the arrays into pointers, but only when
they're arrays of (const char), not any other kind of array, including
(char).

See included code.

This'd be a _really_ appreciated quick fix, if t'were possible afore the
yuletide celebrations ... ;-)



begin 666 dmstaticarraybug2.cpp


M"G1E;7!L871E(#QI;G0 3CX-"G-T<G5C="!S<U]A<G)A>5]S:7IE7W-T<G5C

M<R!4+"!I;G0 3CX-"G-S7V%R<F%Y7W-I>F5?<W1R=6-T/$X^(&-O;G-T("9S

M<W1L<V]F=%]N<U]Q=6%L*' I("  ("  ("  ("  ("  ("  ("  ("  ("  
M> T*(R  (&1E9FEN92!35$Q33T947TY535]%3$5-14Y44RAA<BD ("  ("  
M("  ("  ("  ("  ("!S:7IE;V8H<W1L<V]F=%]N<U]Q=6%L*'-S7W-T871I

M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\-" T*:6YT(&UA:6XH*0T*>PT*("  

M86E;,3!=.PT*("  ("  ("!C;VYS="!U;G-I9VYE9"  ;B  ("  (" ]("  
M4U1,4T]&5%].54U?14Q%345.5%,H86DI.PT*("  ('T-" T*("  ("\O(%-5


M("  (&-O;G-T('5N<VEG;F5D("!N("  ("  (#T ("!35$Q33T947TY535]%


M9VAF:6IK;&TB.PT*("  ("  ("!C;VYS="!U;G-I9VYE9"  ;B  ("  (" ]
M("  4U1,4T]&5%].54U?14Q%345.5%,H<C$I.PT*("  ('T-" T*("  ("\O

M(" ]("  >R G82<L("=B)RP )V,G+" G9"<L("=E)RP )V8G+" G9R<L("=H
M)RP )VDG+" G:B<L("=K)RP )VPG+" G;2< ?3L-"B  ("  ("  8V]N<W0 
M=6YS:6=N960 (&X ("  ("  /2  (%-43%-/1E1?3E5-7T5,14U%3E13*'(Q


M("  ("  (&-O;G-T('5N<VEG;F5D("!N("  ("  (#T ("!35$Q33T947TY5

`
end
Dec 19 2005