Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-03-2007
Andreas Scherer Andreas Scherer is offline
Registered User
 
Name: Andreas Scherer
Organization: Private Linux Site
Project: Evaluating Ice-C++, Ice-Java, Ice-Python, Ice-Ruby
 
Join Date: Mar 2005
Location: Berlin, Germany
Posts: 47
slice2cpp 3.2.0 conflicts with Ice Manual

Greetings,

Just out of curiosity I tried to follow the description on page 185 of the Ice Manual regarding the Slice mapping of reserved keywords of the target language (C++ in this case).

Code:
module else {
  interface while {};
};
compiles fine with slice2cpp (version 3.2.0), but compiling the generated C++ code with g++ (version 4.0.2) fails:

Code:
error: ‘_cpp_whilePrx’ does not name a type
error: ‘_cpp_whilePtr’ does not name a type
The two typedefs in the generated header file and several references to "_cpp_whilePtr" in the generated implementation file are incorrect. Since the CHANGES file lists a correction in this respect for Ice 1.5.1, a rock-solid unit test might be in order.

PS: It seems that file Ice-3.2.0/src/slice2cpp/Gen.cpp is affected: methods visitClassDefStart and emitGCClearCode should not use the "keyword-fixed" "name" variable but the unadorned "p->name()" in the relevant places.

Take care,
Andreas

Last edited by Andreas Scherer : 08-03-2007 at 07:01 AM.
Reply With Quote
  #2 (permalink)  
Old 08-05-2007
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 909
Thanks a lot for the bug report! We'll fix this for the next release.

Cheers,

Michi.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
One question about Ice 3.1.1 Manual rc_hz Help Center 4 10-26-2006 11:21 AM
Something missing in Ice 3.1.0 manual rc_hz Comments 3 10-05-2006 04:07 AM
Ice 2.1.0 manual andhow Bug Reports 1 05-09-2005 04:55 AM
A suggestion for the ICE manual shantanu_k06 Comments 1 05-13-2004 09:27 AM
What's new in Ice-1.3.0 manual? shantanu_k06 Comments 1 03-07-2004 05:18 PM


All times are GMT -4. The time now is 07:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.