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)
Change History (3)
by , 14 years ago
Attachment: | sunpro-rasterio.patch added |
---|
comment:1 by , 14 years ago
Cc: | added |
---|
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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