From 4df8fcb07f21b450d3885eaec39dc4bcf3f07f81 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 1 Mar 2021 17:37:31 +0200 Subject: [PATCH] Explicitly call base class copy constructor for expressions --- source/glsl/syntax.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/glsl/syntax.cpp b/source/glsl/syntax.cpp index 55dc94a7..90e26c39 100644 --- a/source/glsl/syntax.cpp +++ b/source/glsl/syntax.cpp @@ -107,6 +107,7 @@ VariableReference::VariableReference(): { } VariableReference::VariableReference(const VariableReference &other): + Expression(other), name(other.name), declaration(0) { } @@ -122,6 +123,7 @@ InterfaceBlockReference::InterfaceBlockReference(): { } InterfaceBlockReference::InterfaceBlockReference(const InterfaceBlockReference &other): + Expression(other), name(other.name), declaration(0) { } @@ -137,6 +139,7 @@ MemberAccess::MemberAccess(): { } MemberAccess::MemberAccess(const MemberAccess &other): + Expression(other), left(other.left), member(other.member), declaration(0) @@ -170,6 +173,7 @@ Assignment::Assignment(): { } Assignment::Assignment(const Assignment &other): + BinaryExpression(other), self_referencing(other.self_referencing), target_declaration(0) { } @@ -186,6 +190,7 @@ FunctionCall::FunctionCall(): { } FunctionCall::FunctionCall(const FunctionCall &other): + Expression(other), name(other.name), constructor(other.constructor), arguments(other.arguments), @@ -247,6 +252,7 @@ VariableDeclaration::VariableDeclaration(): { } VariableDeclaration::VariableDeclaration(const VariableDeclaration &other): + Statement(other), layout(other.layout), constant(other.constant), sampling(other.sampling), @@ -282,6 +288,7 @@ InterfaceBlock::InterfaceBlock(): } InterfaceBlock::InterfaceBlock(const InterfaceBlock &other): + Statement(other), interface(other.interface), name(other.name), members(other.members), @@ -307,6 +314,7 @@ FunctionDeclaration::FunctionDeclaration(): { } FunctionDeclaration::FunctionDeclaration(const FunctionDeclaration &other): + Statement(other), return_type(other.return_type), name(other.name), parameters(other.parameters), -- 2.43.0