[Rose-public] template error question

Quinlan, Dan quinlan1 at llnl.gov
Wed May 28 20:36:53 PDT 2014


Hi Boyanna,
  I will look at this when I get back from DOE meetings on Friday.
Thanks for the simple example test code.

Thanks,
Dan


On 5/28/14 7:00 PM, "Boyana Norris" <norris at cs.uoregon.edu> wrote:

>The following code compiles with g++-4.4 but fails with
>identityTranslator (rose-edg4x branch compiled with gcc 4.4):
>
>$ g++-4.4 templ.cc
>$ identityTranslator templ.cc
>RARE ISSUE #1: In SageInterface::appendStatement(): This template
>instantiation has previously been added to the scope, so avoid doing so
>again (see test2013_198.C): classDeclaration = 0xb2a674c0 =
>SgTemplateInstantiationDecl scope = 0xb2c8d398 =
>SgNamespaceDefinitionStatement
>RARE ISSUE #1: In SageInterface::appendStatement(): This template
>instantiation has previously been added to the scope, so avoid doing so
>again (see test2013_198.C): classDeclaration = 0xb2a8e3e8 =
>SgTemplateInstantiationDecl scope = 0xb2c8ec88 =
>SgNamespaceDefinitionStatement
>WARNING: new semantics is that the input name has no template syntax.
>templateNameWithoutArguments = operator int *std::tr1::__shared_ptr<int,
>__gnu_cxx::_S_atomic>::*
>identityTranslator:
>/export/tmp.hudson-rose/hudson/workspace/release-edg_binaries/frontend/EDG
>/gcc/4.4.5/label/i686-linux/src/frontend/CxxFrontend/EDG/edgRose/edgRose.C
>:21233: SgFunctionDeclaration*
>EDG_ROSE_Translation::convert_routine(a_routine*, bool, a_template*):
>Assertion `buildTemplateInstantiation == true' failed.
>Aborted (core dumped)
>
>Sample code:
>
>#include <memory>
>
>int main() {
>  std::shared_ptr<int> a;
>  return 0;
>}
>
>Is there a a workaround?
>
>Thanks,
>>Boyana Norris, norris at cs.uoregon.edu
>http://ix.cs.uoregon.edu/~norris
>
>
>_______________________________________________
>rose-public mailing list
>rose-public at nersc.gov



More information about the rose-public mailing list