Merged DMD commit 2f861ed4f230519a8b9d22fce01a80ba26feab5f:

bugzilla 5197 Ddoc: access-attributed auto template function crashes dmd
This commit is contained in:
David Nadlinger
2011-04-23 17:29:10 +02:00
parent 228a5cbf1c
commit 625fe5a61d
2 changed files with 7 additions and 2 deletions

View File

@@ -835,7 +835,12 @@ void FuncDeclaration::toDocBuffer(OutBuffer *buf)
hgs.ddoc = 1;
prefix(buf, td);
tf->next->toCBuffer(buf, NULL, &hgs);
if (tf)
{ if (tf->nextOf())
tf->nextOf()->toCBuffer(buf, NULL, &hgs);
else
buf->writestring("auto");
}
buf->writeByte(' ');
buf->writestring(ident->toChars());
buf->writeByte('(');

View File

@@ -59,7 +59,7 @@ Global::Global()
copyright = "Copyright (c) 1999-2010 by Digital Mars and Tomas Lindquist Olsen";
written = "written by Walter Bright and Tomas Lindquist Olsen";
version = "v1.066";
version = "v1.067";
ldc_version = "LDC trunk";
llvm_version = "LLVM 2.9";
global.structalign = 8;