From d462cd11df3c623364e7b6c1b007ed01b5d3a272 Mon Sep 17 00:00:00 2001 From: Kp Date: Thu, 16 Oct 2014 01:46:21 +0000 Subject: [PATCH] Fix gcc 4.6 build of vms_vector with explicit temporary gcc 4.7 and later support brace initializing the base class gcc 4.6 requires an explicit temporary to achieve the same result --- common/main/segment.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/main/segment.h b/common/main/segment.h index bf5619511..12b946550 100644 --- a/common/main/segment.h +++ b/common/main/segment.h @@ -308,7 +308,10 @@ struct vertex : vms_vector { vertex() = default; vertex(const fix &a, const fix &b, const fix &c) : - vms_vector{a, b, c} + /* gcc 4.7 and later support brace initializing the base class + * gcc 4.6 requires the explicit temporary + */ + vms_vector(vms_vector{a, b, c}) { } explicit vertex(const vms_vector &v) :