Bugzilla – Attachment 71 Details for
Bug 145
ICE when class members initializing to void
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Bug creation and email sending has been disabled, file new bugs at
gcc.gnu.org/bugzilla
[patch]
patch for dfrontend
bug145.patch (text/plain), 766 bytes, created by
Ketmar Dark
on 2014-07-23 09:08:57 CEST
(
hide
)
Description:
patch for dfrontend
Filename:
MIME Type:
Creator:
Ketmar Dark
Created:
2014-07-23 09:08:57 CEST
Size:
766 bytes
patch
obsolete
>diff --git a/gcc/d/dfrontend/declaration.c b/gcc/d/dfrontend/declaration.c >index f28ed3f..c623e4b 100644 >--- a/gcc/d/dfrontend/declaration.c >+++ b/gcc/d/dfrontend/declaration.c >@@ -1605,7 +1605,7 @@ void VarDeclaration::semantic2(Scope *sc) > if ((type->ty == Tclass)&&type->isMutable()&&!type->isShared()) > { > ExpInitializer *ei = init->isExpInitializer(); >- if (ei->exp->op == TOKclassreference) >+ if (ei && ei->exp->op == TOKclassreference) > error("is mutable. Only const or immutable class thread local variable are allowed, not %s", type->toChars()); > } > else if (type->ty == Tpointer && type->nextOf()->ty == Tstruct && type->nextOf()->isMutable() &&!type->nextOf()->isShared())
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 145
: 71