https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85462
Bug ID: 85462 Summary: internal compiler error: in inc_refcount_use, at cp/pt.c:8955 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: manuel.lauss at googlemail dot com Target Milestone: --- Created attachment 43983 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43983&action=edit compressed unreduced testcase gcc-8 r259483: $ /usr/bin/x86_64-pc-linux-gnu-g++ -c fault.c fault.c: In instantiation of ‘bool clang::RecursiveASTVisitor<Derived>::TraverseAttr(clang::Attr*) [with Derived = {anonymous}::ParentMapASTVisitor]’: fault.c:201526:9: required from ‘bool clang::RecursiveASTVisitor<Derived>::TraverseDecl(clang::Decl*) [with Derived = {anonymous}::ParentMapASTVisitor]’ fault.c:217418:53: required from here fault.c:200751:70: internal compiler error: in inc_refcount_use, at cp/pt.c:8955 return getDerived().TraverseNoSanitizeAttr(cast<NoSanitizeAttr>(A)); ~~~~~~~~~~~~~~~~~~~~^~~ attached testcase is from current clang git head, unreduced. 7.3.1 is unaffected for instance.