Patchwork [gccgo] Initialize field

login
register
mail settings
Submitter Ian Taylor
Date July 13, 2010, 9:47 a.m.
Message ID <mcrmxtvogrb.fsf@google.com>
Download mbox | patch
Permalink /patch/58727/
State New
Headers show

Comments

Ian Taylor - July 13, 2010, 9:47 a.m.
This patch from Vinu Rajashekhar adds a field initialization that I
forgot.  Committed to gccgo branch.

Ian

Patch

diff -r a4586bbc83ad go/gogo.cc
--- a/go/gogo.cc	Mon Jul 12 01:38:42 2010 -0700
+++ b/go/gogo.cc	Tue Jul 13 02:45:23 2010 -0700
@@ -4233,7 +4233,8 @@ 
 Package::Package(const std::string& name, const std::string& unique_prefix,
 		 source_location location)
   : name_(name), unique_prefix_(unique_prefix), bindings_(new Bindings(NULL)),
-    priority_(0), location_(location), used_(false), is_imported_(false)
+    priority_(0), location_(location), used_(false), is_imported_(false),
+    uses_sink_alias_(false)
 {
   gcc_assert(!name.empty() && !unique_prefix.empty());
 }