diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2013-06-07 19:24:07 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2013-06-07 19:24:07 (GMT) |
commit | 0df515b46696d95a4c50bb9383105bef2f78236e (patch) | |
tree | 1df73b453d364c8eeecffb35ea8c5e49493e5698 /src/mainwin.cc | |
parent | af89e263226174989bbd9d7ce993846c8fb6fc07 (diff) |
build fix for gcc 4.7, fedora 17
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r-- | src/mainwin.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index 946bc2a..d10337d 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -655,7 +655,11 @@ bool MainWindow::compile(bool reload, bool procevents) if (procevents) QApplication::processEvents(); AbstractNode::resetIndexCounter(); - this->root_inst = ModuleInstantiation("group"); + + // split these two lines - gcc 4.7 bug + ModuleInstantiation mi = ModuleInstantiation( "group" ); + this->root_inst = mi; + this->absolute_root_node = this->root_module->instantiate(&top_ctx, &this->root_inst, NULL); if (this->absolute_root_node) { |