From c8d17cda7725791e346270563d13d1154605a9b9 Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Tue, 9 Apr 2013 14:41:08 +0800 Subject: [PATCH] do not use the advanced C++ feature MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit so that it can work on gcc 4.6 happily, otherwise, I have the following issues: backend/src/./ir/instruction.hpp:112:7: error: type ‘gbe::ir::Instruction’ is not a direct base of ‘gbe::ir::Instruction’ Signed-off-by: Lu Guanqun Reviewed-by: Zhigang Gong --- backend/src/ir/instruction.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/ir/instruction.hpp b/backend/src/ir/instruction.hpp index de117e9..ec5d250 100644 --- a/backend/src/ir/instruction.hpp +++ b/backend/src/ir/instruction.hpp @@ -109,8 +109,9 @@ namespace ir { } /*! Copy the private fields and give it the same parent */ INLINE Instruction(const Instruction &other) : - Instruction(reinterpret_cast(&other.opcode)) - {} + InstructionBase(reinterpret_cast(&other.opcode)) { + parent = other.parent; + } private: /*! To be consistant with copy constructor */ INLINE Instruction &operator= (const Instruction &other) { return *this; } -- 2.7.4