[LLVMbugs] [Bug 7208] New: ((Other.isNull() || Other.isCanonical()) && "Type is not canonical!")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 23 05:44:16 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7208

           Summary: ((Other.isNull() || Other.isCanonical()) && "Type is
                    not canonical!")
           Product: clang
           Version: trunk
          Platform: Sun
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kwm at FreeBSD.org
                CC: llvmbugs at cs.uiuc.edu


I think this is related to the fix in http://llvm.org/bugs/show_bug.cgi?id=5678

> cat flac-E.cpp 
typedef struct {
} FLAC__StreamMetadata;
namespace FLAC {
 namespace Metadata {
  class Prototype {
  bool set_metadata(FLAC::Metadata::Prototype **metadata, unsigned num_blocks)
  {
   ::FLAC__StreamMetadata *m[num_blocks];
  }
};
}
}

> clang++ flac-E.cpp
Assertion failed: ((Other.isNull() || Other.isCanonical()) && "Type is not
canonical!"), function CreateUnsafe, file
/usr/home/kwm/llvm/llvm/tools/clang/lib/Frontend/../../include/clang/AST/CanonicalType.h,
line 708.
Stack dump:
0.    Program arguments: /usr/local/clang/bin/clang -cc1 -triple
i386-unknown-freebsd9.0 -S -disable-free -main-file-name flac-E.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /usr/local/clang/lib/clang/2.0 -ferror-limit 19
-fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-ofol1y.s -x c++ flac-E.cpp 
1.    flac-E.cpp:10:2: current parser token ';'
2.    flac-E.cpp:3:1: parsing namespace 'FLAC'
3.    flac-E.cpp:4:2: parsing namespace 'FLAC::Metadata'
4.    flac-E.cpp:5:3: parsing struct/union/class body
'FLAC::Metadata::Prototype'
5.    flac-E.cpp:7:3: parsing function body
'FLAC::Metadata::Prototype::set_metadata'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

-- 
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