glslang icon indicating copy to clipboard operation
glslang copied to clipboard

invalid arithmetic between different enumeration types

Open reg31 opened this issue 4 months ago • 0 comments

While compiling with c++26, I am seeing the error:

glslang/glslang/MachineIndependent/ParseHelper.cpp:10361:108: error: invalid arithmetic between different enumeration types ('TLayoutPacking' and 'TLayoutMatrix') 10361 | size_t originMemberHash = hasher(originType->getStruct()->at(i).type->getQualifier().layoutPacking + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 10362 | originType->getStruct()->at(i).type->getQualifier().layoutMatrix); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

glslang/glslang/MachineIndependent/ParseHelper.cpp:10363:102: error: invalid arithmetic between different enumeration types ('TLayoutPacking' and 'TLayoutMatrix') 10363 | size_t tmpMemberHash = hasher(tmpType->getStruct()->at(i).type->getQualifier().layoutPacking + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 10364 | tmpType->getStruct()->at(i).type->getQualifier().layoutMatrix); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

reg31 avatar Sep 04 '25 10:09 reg31