[LLVMbugs] [Bug 20399] New: Assertion in the ASTWriter `!WritingAST && "Already writing the AST!"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 22 05:58:18 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20399
Bug ID: 20399
Summary: Assertion in the ASTWriter `!WritingAST && "Already
writing the AST!"
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: biancacristinacristescu at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
]$ cat module_Gdml.map
module stdlib [system] {
use cstdlib
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cctype"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/clocale"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cmath"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdlib"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cwchar"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cwctype"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/debug/debug.h"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/exception"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/atomicity.h"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/new_allocator.h"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/numeric_traits.h"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ext/type_traits.h"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/fstream"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/initializer_list"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/iomanip"
header "/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ios"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/iosfwd"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/iostream"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/istream"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/iterator"
header "/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/list"
header "/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/map"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/memory"
header "/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/new"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/ostream"
header "/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/set"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/streambuf"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/string"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/typeinfo"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/utility"
header
"/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/vector"
}
module libCore {
header "SecondHeader.h"
use stdlib
export *
}
module libGdml {
header "FirstHeader.h"
use libCore
use stdlib
export *
}
--------------------------------------------------------------------------------
$ cat FirstHeader.h
#ifndef FIRSTHEADER
#define FIRSTHEADER
#include "SecondHeader.h" // Just a class which gets in the lazy
deserialization chain
#include <map>
#include <vector>
struct A {
typedef std::map<int, int*>::iterator el;
};
struct B {
~B() {}
std::vector<int> fvec; // Cannot replace with simple mockup
};
#endif
--------------------------------------------------------------------------------
$ cat SecondHeader.h
#ifndef SECONDHEADER
#define SECONDHEADER
#include <vector>
class Collection {
template <class T> struct Address { };
};
template <> struct Collection::Address<std::vector<bool> >
: public Collection::Address<std::vector<bool>::const_reference> { };
#endif
--
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/20140722/43f0a54f/attachment.html>
More information about the llvm-bugs
mailing list