Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • sac2c sac2c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 394
    • Issues 394
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #1303
Closed
Open
Created Aug 14, 2009 by Robert Bernecky@rbeDeveloper

ArrayFormat dies dismally on double data

Bugzilla Link 555
Created on Aug 14, 2009 22:49
Version 1.00beta
OS Linux
Architecture PC
Attachments bugformat.sac

Extended Description

sac2c Build #16335
int main()
{
 v = [ 9.884995e+06, 1.031330e+14, 9.885003e+06, 1.082900e+14 ];
 StdIO::print(v);
 StdIO::show(v);
 return(0);
}
produces this:
 a.out
Dimension:  1
Shape    : <  4>
<9.884995e+06 1.031330e+14 9.885003e+06 1.082900e+14 > 
*** SAC runtime error
*** line 152 
*** argument #1 of "_sel_VxA_" should be legal index into argument #2;
*** types found: int[1]{1}  and  char[1]
Clearly, double vector formatting code needs work.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking