[LLVMbugs] [Bug 19613] New: -fdelayed-template-parsing vs. out-of-line definition of inner class method

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 29 17:50:59 PDT 2014


            Bug ID: 19613
           Summary: -fdelayed-template-parsing vs. out-of-line definition
                    of inner class method
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: hans at chromium.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 18887
    Classification: Unclassified

The following code fails to compile with -fdelayed-template-parsing:

struct HeapTypeConfig {
  static void from_bitset();

template <class Config>
struct TypeImpl  {
  struct BitsetType;

  static void Any() {

template<class Config>
struct TypeImpl<Config>::BitsetType {
  static void New() {

/tmp/a.cc:17:5: error: use of undeclared identifier 'Config'
/tmp/a.cc:22:29: note: in instantiation of member function
'TypeImpl<HeapTypeConfig>::Any' requested here

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/20140430/60fe1c4c/attachment.html>

More information about the llvm-bugs mailing list