[LLVMbugs] [Bug 1906] New: Diagnostics can be confused when more than one file is involved

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jan 11 22:24:18 PST 2008


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

           Summary: Diagnostics can be confused when more than one file is
                    involved
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Basic
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: neil at daikokuya.co.uk
                CC: llvmbugs at cs.uiuc.edu


Silly example:

double a; int *b; void f(void) { int c = a +
#include "some.h"
; }

where some.h has just one line:

b

Outputs (note the stray ~ character):

/tmp/some.c:1:44: error: invalid operands to binary expression ('double' and
'int *')
double a; int *b; void f(void) { int c = a +
~                                        ~ ^
1 diagnostic generated.


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