[Bf-blender-cvs] [6cd64f8caac] master: Add workaround for gcc 11 compiler bug

Jacques Lucke noreply at git.blender.org
Wed Jun 2 14:14:20 CEST 2021


Commit: 6cd64f8caacc1a7c679d962a053f73263fc18c2c
Author: Jacques Lucke
Date:   Wed Jun 2 14:13:40 2021 +0200
Branches: master
https://developer.blender.org/rB6cd64f8caacc1a7c679d962a053f73263fc18c2c

Add workaround for gcc 11 compiler bug

Differential Revision: https://developer.blender.org/D11462

===================================================================

M	intern/cycles/render/alembic_read.cpp

===================================================================

diff --git a/intern/cycles/render/alembic_read.cpp b/intern/cycles/render/alembic_read.cpp
index 4d09c40b07b..33ce3502879 100644
--- a/intern/cycles/render/alembic_read.cpp
+++ b/intern/cycles/render/alembic_read.cpp
@@ -606,7 +606,8 @@ void read_geometry_data(AlembicProcedural *proc,
 
 template<typename T> struct value_type_converter {
   using cycles_type = float;
-  static constexpr TypeDesc type_desc = TypeFloat;
+  /* Use `TypeDesc::FLOAT` instead of `TypeFloat` to work around a compiler bug in gcc 11. */
+  static constexpr TypeDesc type_desc = TypeDesc::FLOAT;
   static constexpr const char *type_name = "float (default)";
 
   static cycles_type convert_value(T value)



More information about the Bf-blender-cvs mailing list