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#0H-"B\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O
M+R\O+R\-"B\O($5X=')A8W1E9"!F<F]M('-T;'-O9G0O<W1L<V]F="YH#0H-
M"G1E;7!L871E(#QI;G0 3CX-"G-T<G5C="!S<U]A<G)A>5]S:7IE7W-T<G5C
M= T*>PT*("  (&-H87( ("  8UM.73L-"GT[#0H-"G1E;7!L871E(#QC;&%S
M<R!4+"!I;G0 3CX-"G-S7V%R<F%Y7W-I>F5?<W1R=6-T/$X^(&-O;G-T("9S
M<U]S=&%T:6-?87)R87E?<VEZ92A4(" F*5M.72D[#0H-"B, ("!D969I;F4 
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
M8U]A<G)A>5]S:7IE*2AA<BDI#0H-"B\O+R\O+R\O+R\O+R\O+R\O+R\O+R\O
M+R\O+R\O+R\O+R\O+R\O+R\O+R\O+R\-" T*:6YT(&UA:6XH*0T*>PT*("  
M("\O(%-50T-%1413#0H ("  >PT*("  ("  ("!I;G0 ("  ("  ("  ("  
M86E;,3!=.PT*("  ("  ("!C;VYS="!U;G-I9VYE9"  ;B  ("  (" ]("  
M4U1,4T]&5%].54U?14Q%345.5%,H86DI.PT*("  ('T-" T*("  ("\O(%-5
M0T-%1413#0H ("  >PT*("  ("  ("!I;G0 ("  ("  ("  ("  86E;72  
M(" ]("  >R P+" Q+" R+" S+" T+" U+" V+" W+" X+" Y('T[#0H ("  
M("  (&-O;G-T('5N<VEG;F5D("!N("  ("  (#T ("!35$Q33T947TY535]%
M3$5-14Y44RAA:2D[#0H ("  ?0T*#0H ("  +R\ 4U5#0T5%1%,-"B  ("![
M#0H ("  ("  (&-H87( ("  ("  ("  ("!R,5M=("  (#T (" B86)C9&5F
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($9!24Q3#0H ("  >PT*("  ("  ("!C;VYS="!C:&%R("  ("  <C%;72  
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*3L-"B  ("!]#0H-"B  (" O+R!&04E,4PT*("  ('L-"B  ("  ("  8V]N
M<W0 8VAA<B  ("  ('(Q6UT ("  /2  (")A8F-D969G:&9I:FML;2([#0H 
M("  ("  (&-O;G-T('5N<VEG;F5D("!N("  ("  (#T ("!35$Q33T947TY5
L35]%3$5-14Y44RAR,2D[#0H ("  ?0T*#0H ("  <F5T=7)N(# [#0I]#0H`
`
end
Dec 19 2005