Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++/Front End/Pragmas    [ Add a report in this area ]  
Report #:  19034   Status: Closed
(Pulled) #pragma sizeof doesn't support qualified class names: #pragma sizeof(foo::bar) struct AA{ int ii; }; int main() {   return s
Project:  C++Builder Build #:  
Version:    4.0 Submitted By:   John Kaster
Report Type:  Basic functionality failure Date Reported:  4/13/1999 12:00:00 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   47880
Resolution: Retest (Resolution Comments) Resolved in Build: : 10.0.2098.14501
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
#pragma sizeof doesn't support qualified class names: #pragma sizeof(foo::bar)
struct AA{ int ii; };
int main()
{
  return sizeof( AA::ii );
}
Steps to Reproduce:
[t.cpp is attached]
1. bcc32 -c t.cpp
2. get error "expecting )"
Workarounds
None
Attachment
N
Comments

None

Server Response from: ETNACODE01