[LLVMbugs] [Bug 13758] New: Assertion `Loc.isValid() && "point of instantiation must be valid!"' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Sep 3 08:37:26 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13758
Bug #: 13758
Summary: Assertion `Loc.isValid() && "point of instantiation
must be valid!"' failed.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: georgid at outlook.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9148
--> http://llvm.org/bugs/attachment.cgi?id=9148
Original source causing the crash
I am hitting the following crash when trying to compile the following simple
program:
DeclTemplate.h:1374: void
clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation):
Assertion `Loc.isValid() && "point of instantiation must be valid!"' failed.
crash.cpp:
#include <string>
#include <map>
#include <unordered_map>
template<typename T>
class StripedHashTable {
public:
static const int STRIPE_SIZE = 100;
StripedHashTable() {
_names[0] = new NameMap();
}
~StripedHashTable() {
}
private:
typedef boost::unordered_map<std::string, std::string> NameMap;
NameMap *_names[STRIPE_SIZE];
};
class ManagedObject { };
using namespace std;
using namespace std::tr1;
void tt()
{
StripedHashTable<ManagedObject> *objectTable = new
StripedHashTable<ManagedObject>();
(void)objectTable;
I have attached a full log of the crash, the original source and the
preprocessed source.
I have synced to:
# svn info
Path: .
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 163111
--
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