https://llvm.org/bugs/show_bug.cgi?id=28290
Bug ID: 28290 Summary: -fno-delayed-template-parsing accepting illegal code. Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: pierregoussea...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified clang version 3.9.0 (SVN r273566) (23 June 2016) Target: x86_64-unknown-linux-gnu It seems the following test case should fail to compile when disabling delayed template parsing. No warnings or error is observed using "-fno-template-parsing-delayed". gcc and icc both emit an error. ---- class UBS; template <bool bCS> struct FIBH { FIBH() { GDN(BS); } class UBS* BS; }; extern void foo(); void foo() { FIBH<false> IBH; } void GDN(UBS* BS); ---- -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs