Bug 209682 - CBasicType incorrectly copies long long from DeclSpecifier
Summary: CBasicType incorrectly copies long long from DeclSpecifier
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 5.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.0.2   Edit
Assignee: Markus Schorn CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-11-13 13:48 EST by Jon Mathews CLA
Modified: 2008-06-22 02:22 EDT (History)
0 users

See Also:


Attachments
Patch for CBasicType on HEAD (987 bytes, patch)
2007-11-13 13:48 EST, Jon Mathews CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Mathews CLA 2007-11-13 13:48:58 EST
Created attachment 82791 [details]
Patch for CBasicType on HEAD

Build ID: M20071023-1652

Steps To Reproduce:
long long i;
unsigned char c;

i = 1; // ICBasicType.isLongLong() == false
c = 1; // ICBasicType.isLongLong() == true

More information:
CBasicType incorrectly copies from the ICASTSimpleDeclSpecifier in the case of long long - a simple cut and paste error.  The consequence is that all unsigned variables appear to be long long, and signed long long is not a long long.
Comment 1 Jon Mathews CLA 2007-11-13 13:54:06 EST
This affects the cdt_3_1 and cdt_4_0 branches as well; please fix there as well.  I can submit patches and bug reports for those if necessary, but it's an extremely small change.

Best regards,
Jon
Comment 2 Markus Schorn CLA 2007-11-22 04:16:32 EST
Fixed in 4.0.2 and 5.0 > 20071122.