https://bugs.llvm.org/show_bug.cgi?id=44999
Bug ID: 44999
Summary: assertion "SM->getFileID(Loc) == MacroFileID" in
retrieveMacroLocation
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Test case:
source.c:
#define a(b, c) memset(b, 0, c)
#define fontrom (mem + FONT_ADRS)
mem[];
#include "header.h"
d() {
a(fontrom, sizeof(fontrom));
}
header.h:
#define FONT_ADRS 0x110000
This will trigger the assert because the range passed to DiagnosticRenderer.cpp
covers diferent file locations.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs