[LLVMbugs] [Bug 14322] New: add warning for invalid code when -fdelayed-template-parsing is used

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 12 07:59:17 PST 2012


             Bug #: 14322
           Summary: add warning for invalid code when
                    -fdelayed-template-parsing is used
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: seth.cantrell at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

-fdelayed-template-parsing is offered for compatibility with code that depends
on two-phase name lookup not being performed correctly. This functionality is
enabled by default for some platforms.

This means that invalid code can compile silently without the user requesting,
intending to use, or even being aware of delayed template parsing.

It would be nice if -fdelayed-template-parsing simply caused the error to decay
into a warning, which could be disabled for legacy code bases which truly
desire the functionality.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list