[llvm-bugs] [Bug 28290] New: -fno-delayed-template-parsing accepting illegal code.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 24 03:22:43 PDT 2016


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: unassignedclangbugs at nondot.org
          Reporter: pierregousseau14 at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160624/e10d6e22/attachment.html>


More information about the llvm-bugs mailing list