Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert ‘bool’ to ‘clang::TemplateName::Qualified’not allowed in latest GCC #458

Closed
nickhuang99 opened this issue Mar 24, 2022 · 3 comments · Fixed by #459
Closed
Labels
bug Something isn't working

Comments

@nickhuang99
Copy link

When compiling with latest GCC-11.2.0 with -std=c++20, there is error like convert ‘bool’ to ‘clang::TemplateName::Qualified’ error
It is better just leave it for default.


diff --git a/InsightsHelpers.cpp b/InsightsHelpers.cpp
index d08157f..da68e0e 100644
--- a/InsightsHelpers.cpp
+++ b/InsightsHelpers.cpp
@@ -1378,7 +1378,8 @@ void StringStream::Print(const TemplateArgument& arg)
 
 void StringStream::Print(const TemplateSpecializationType& arg)
 {
-    arg.getTemplateName().print(*this, CppInsightsPrintingPolicy{}, true);
+    //arg.getTemplateName().print(*this, CppInsightsPrintingPolicy{}, true);
+       arg.getTemplateName().print(*this, CppInsightsPrintingPolicy{});
 }
 //-----------------------------------------------------------------------------
 

@mingodad
Copy link

mingodad commented May 1, 2022

With clang14 I'm getting the same error and applying the fix shown above has allowed I was able to build.

andreasfertig added a commit that referenced this issue May 1, 2022
@andreasfertig andreasfertig added the bug Something isn't working label May 1, 2022
@andreasfertig
Copy link
Owner

Hello @nickhuang99,

thanks for the fix. I use a modified version.

Andreas

@nickhuang99
Copy link
Author

nickhuang99 commented May 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants