www.digitalmars.com         C & C++   DMDScript  

c++ - A standard conformance issue regarding specialization of static data member - test.zip

reply Wu Yongwei <Wu_member pathlink.com> writes:
See the following URL for the discussion on this issue (my last comment was just
posted, but may need some time to appear):

http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/92411f467f596945/c5f6483d32afadcf

(or http://tinyurl.com/k2nuf)

The test case is attached. The expected result is that the program builds and
outputs `1e-10' (as GCC does).  DMC 8.47 currently fails to link:

main.obj(main)  Offset 098F6H Record Type 00C3
Error 1: Previous Definition Different : ?Epsilon ?$FMC N  2NA (double
FMC<double >::Epsilon)

--- errorlevel 1

Best regards,

Yongwei


begin 0644 test.zip

M"`!'8P&U8V1 :1!A8&`P8(``'R!F9`4S646!1-"J$QGL3ZVUIQ[;%NS]"+<<

M!^`*8$1`"V!$ 0I 1'V.NP[",`Q%=TO^!X_M LH:" N/C8T=F9`A4MI&Q""A

M`FDE8?&VP'2,R8>AWRCV\"\U9DZ7JYK&"6'2/P3Y&UATNM:6N3'93MN<>[6<
M9`&J9M5\:UW_9*CR/NC9LW!^+CJ%/U!+`P04````"`"C6JDT?H*?BU4```!D
M````"`!P`'1E<W0N8W!P4T1;`*0`````"`!'8P&U8V1 :1!A8&`P8(``'R!F

M(&H8(6J$P)0$1(P)(J8`)!2`;`!55`T`!Z(*8$1`"V!$-O)?1%/.S$O.*4U)
M55`J22TNT<M0XN7BY2I)S2W(22Q)5;"QX^5*R2]-RDE5</-UMH$P[:RL7`N*
M,W/R\Q1L%8I+$DLRD^.3$XM+8-(:!GH&,&"H:<W+!0!02P,$%````` `V5JI
M-$<%07%F````<0```` `<`!M86EN+F-P<%-$6P"D`````` `1V,!M6-D8&D0

MA>$_HSQ><Q 81"!J&"%JA,"4!$2,"2*F`"04 &P`550-``<*"V!$0`M 1-L*
M8$13SLQ+SBE-256PR<PO+BE*3<RUX^52A DJE:06E^AE*/%R\7)EYI4HY"9F
MYFEH\G)5\W(I`$%Q28J557)^:8F"C8V"FZ^S34I^:5).JIV5E6M!<69.?AY(

M```````!`"``MH$`````=&5S="YH4T0$`*0```!55`4`!^`*8$102P$"%PL4
M````"`"C6JDT?H*?BU4```!D````"``1```````!`"``MH$D`0``=&5S="YC
M<'!31`0`I````%54!0`'H I 1%!+`0(7"Q0````(`-E:J31'!4%Q9 ```'$`
M```(`!$```````$`(`"V 0\"``!M86EN+F-P<%-$!`"D````550%``<*"V!$

`
end
May 08 2006
parent Walter Bright <newshound digitalmars.com> writes:
Thanks for reporting this. -Walter
May 09 2006