Skip to content

Commit 4a42ebb

Browse files
authored
Merge pull request #5562 from franzpoeschel/fix-compiler-issue-cuda13-gcc11
Workaround for a compiler bug affecting cuda-13 + gcc-11
2 parents 11987b8 + b612458 commit 4a42ebb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/pmacc/traits/GetComponentsType.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ namespace pmacc
3535
* If T_Type is fundamental c++ type, the identity is returned
3636
*
3737
* Attention: do not defines this trait for structs with different attributes inside
38+
*
39+
* Intentionally not using std::is_fundamental_v<T_Type> due to a compiler bug in cuda-13/gcc-11 combination,
40+
* ref. https://github.com/ComputationalRadiationPhysics/picongpu/issues/5554
3841
*/
39-
template<typename T_Type, bool T_IsFundamental = std::is_fundamental_v<T_Type>>
42+
template<typename T_Type, bool T_IsFundamental = std::is_fundamental<T_Type>::value>
4043
struct GetComponentsType;
4144

4245
template<typename T_Type>

0 commit comments

Comments
 (0)