Opened 14 years ago

Closed 14 years ago

#3654 closed defect (fixed)

gdal-1.7.2/gcore/rasterio.cpp does not compile with SunPro 11

Reported by: jhayes Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc: pvachon

Description

The GDALCopyWordsT<> template functions have been placed in an unnamed namespace. It looks like SunPro is have troubles finding them. By calling them as "::GDALCopyWordsT()", forces the compiler to look in the local unnamed namespace.

Attachments (1)

sunpro-rasterio.patch (6.7 KB ) - added by jhayes 14 years ago.

Download all attachments as: .zip

Change History (3)

by jhayes, 14 years ago

Attachment: sunpro-rasterio.patch added

comment:1 by Even Rouault, 14 years ago

Cc: pvachon added

comment:2 by pvachon, 14 years ago

Resolution: fixed
Status: newclosed

Hi,

I've commited a fix for this that adds SunStudio to the list of non-compliant C++ compilers. It seems it does not handle the scoping of anonymous namespaces correctly, since requiring nominating a member of the top-level global namespace to select an item in an anonymous namespace is a very broken behaviour.

From this point on, when building with SunStudio, you will fall back on the legacy code.

Regards, Phil

Note: See TracTickets for help on using tickets.