I'm seeing this on build 118 with SunStudio 12 Update 1 installed from
the pkg server:
> cat jdc2.cpp
template <class foo> class bar {
foo failure;
};
class baz;
typedef bar<baz> blah;
blah *fail;
> /opt/sunstudio12.1/bin/CC -c jdc2.cpp
> /opt/sunstudio12.1/bin/CC -g -c jdc2.cpp
> /opt/sunstudio12.1/bin/CC -pta -c jdc2.cpp
> /opt/sunstudio12.1/bin/CC -g -pta -c jdc2.cpp
"jdc2.cpp", line 2: Error: In this declaration "failure" is of an
incomplete type "baz".
1 Error(s) detected.
>
How is it that the code compiles with either "-g" or "-pta" but not with
both? Under SunStudio 11, it compiles with either or both without trouble.
--
James Carlson 42.703N 71.076W <carlsonj at workingcode.com>