From dffed727a6f1d320021687e62cac719b6f22304f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 28 Sep 2003 07:13:36 +0000 Subject: [PATCH] Doc VC linker bug. --- stepmania/README-GUIDELINES | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/stepmania/README-GUIDELINES b/stepmania/README-GUIDELINES index 91c6b5ac2e..7707681340 100644 --- a/stepmania/README-GUIDELINES +++ b/stepmania/README-GUIDELINES @@ -14,4 +14,17 @@ written. Avoid accessing other singleton classes from singleton destructors. That introduces dependencies on the order of destruction, and can cause problems if one of the singletons throws an exception. - + + +This kills VC: + +template static void YY( T opt ) { } +enum { A } a; +enum { A1 } b; +void XX() { YY(a); YY(b); } + +foo.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT '?YY@@YAXW4__unnamed@@@Z' + +It mangles the template incorrectly. Solution: don't use anonymous +enums as template parameters; give them a name. +