http://llvm.org/bugs/show_bug.cgi?id=11068
Summary: lib/tablegen/TGPreprocessor.h requires NULL, but does
not include a header for it
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
As in summary, lib/tablegen/TGPreprocessor.h uses NULL, but does not include a
header for it.
At the moment it includes <vector>, which picks up <cstdlib> on many
implementations. In g++, starting with g++4.6, it no longer does, therefore the
following patch (or something similar) is required:
Index: lib/TableGen/TGPreprocessor.h
===================================================================
--- lib/TableGen/TGPreprocessor.h (revision 141174)
+++ lib/TableGen/TGPreprocessor.h (working copy)
@@ -15,6 +15,7 @@
#define TGPREPROCESSOR_H
#include <vector>
+#include <cstdlib>
namespace llvm {
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs