Opened 15 years ago

Closed 12 years ago

#1066 closed Patches (wontfix)

Patch to make Boost.Python compile on SunCC

Reported by: s.somani@… Owned by: Dave Abrahams
Milestone: To Be Determined Component: python USE GITHUB
Version: Severity: Showstopper
Keywords: Cc:

Description

Without the patch, SunCC gets confused between the template and overload versions of getattr. Probably legitimately because "abcd" has a type of char(&)[4] which matches the template type as well as the overload (by conversion?). Anyway, IANA C++ L so here it is.

Attachments (1)

3_py_suncc.patch (525 bytes ) - added by s.somani@… 15 years ago.
Patch for SunCC 11 to compile class.cpp

Download all attachments as: .zip

Change History (8)

by s.somani@…, 15 years ago

Attachment: 3_py_suncc.patch added

Patch for SunCC 11 to compile class.cpp

comment:1 by Eric Niebler, 15 years ago

Component: Building BoostPython
Owner: set to Dave Abrahams

comment:2 by Dave Abrahams, 14 years ago

Status: newassigned

comment:3 by Dave Abrahams, 13 years ago

Owner: changed from Dave Abrahams to Sohail Somani
Status: assignednew

Sohail -- I think SunCC might be wrong. The type of the string literal is *supposed* to be char const(&)[4]. Will your patch still work if you change the cast to (char const*)? That's a change I wouldn't mind applying (too much).

comment:4 by sohail-boost-trac@…, 13 years ago

Owner: changed from Sohail Somani to Dave Abrahams

You are right, it should be char const. I actually can't verify any patches anymore since I don't have access to this compiler :-/

However, I think it should work.

comment:5 by Steven Watanabe, 12 years ago

class.cpp compiles without errors on Sun CC 5.9. Resolve as wontfix, since it works with recent versions?

in reply to:  5 comment:6 by Sohail Somani, 12 years ago

Replying to steven_watanabe:

class.cpp compiles without errors on Sun CC 5.9. Resolve as wontfix, since it works with recent versions?

Sounds good.

comment:7 by Steven Watanabe, 12 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.