Results 1 to 2 of 2

Thread: slice2cpp 3.2.0 conflicts with Ice Manual

  1. #1
    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
    50

    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 06:01 AM.

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Thanks a lot for the bug report! We'll fix this for the next release.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ice Manual typo?
    By n2503v in forum Bug Reports
    Replies: 1
    Last Post: 04-08-2009, 07:21 AM
  2. Ice 2.1.0 manual
    By andhow in forum Bug Reports
    Replies: 1
    Last Post: 05-09-2005, 03:55 AM
  3. A bug in Ice manual 2.0.0
    By Mjollnir in forum Bug Reports
    Replies: 7
    Last Post: 02-09-2005, 09:35 PM
  4. Ice manual is now available in Chinese
    By mes in forum Announcements
    Replies: 0
    Last Post: 08-26-2004, 01:23 PM
  5. What's new in Ice-1.3.0 manual?
    By shantanu_k06 in forum Comments
    Replies: 1
    Last Post: 03-07-2004, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •