projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cbdb69
)
compiler: Fix crash when tracked field used in global initializer.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Sun, 14 Dec 2014 19:39:15 +0000
(19:39 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Sun, 14 Dec 2014 19:39:15 +0000
(19:39 +0000)
From-SVN: r218722
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index 21f6cd6c3d89b0cccfbcbc3faf33c944e3293b8b..61b80452d9979ab0f6d92f0cd3e5a5420d6852f6 100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-10731,7
+10731,7
@@
Field_reference_expression::do_lower(Gogo* gogo, Named_object* function,
return this;
// References from functions generated by the compiler don't count.
- if (function->func_value()->is_type_specific_function())
+ if (function
!= NULL && function
->func_value()->is_type_specific_function())
return this;
// We have found a reference to a tracked field. Build a call to