Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • 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 334
    • Issues 334
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Infrastructure Registry
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sac-group
  • sac2csac2c
  • Issues
  • #2263

Closed
Open
Created May 23, 2021 by Artem Shinkarov@temaOwner

Implicit function declaration when calling MathArray::exp with -specmode aud

This code:

module e; export {foo};

float[*] tof(int[*] x) { return { iv -> _tof_S_ (_sel_VxA_ (iv, x)) }; } 

void foo ()
{
  StdIO::print(MathArray::exp(tof([1,2,3])));
}

causes this warning:

In file included from /tmp/sac2c/build_d/include/sac.h:50,
                 from /tmp/SAC_aHNwH1/header.h:278,
                 from /tmp/SAC_aHNwH1/fun1.c:1:
/tmp/SAC_aHNwH1/fun1.c: In function ‘SACf_e__foo’:
/tmp/SAC_aHNwH1/fun1.c:459:20: warning: implicit declaration of function ‘SACwf_MathArray__exp__f_S’; did you mean ‘SACf_MathArray__exp__f_P’? [-Wimplicit-function-declaration]
  459 |     SAC_ND_FUNAP2( SACwf_MathArray__exp__f_S,  SAC_ND_ARG_out( SAC_SET_NT_USG( FAG, (SACp_flat_42, (AUD, (NHD, (NUQ, (FLO, (GLO, (NON, (NOT, (NDI, (FLO, ))))))))))), float), SAC_ND_ARG_in( SAC_SET_NT_USG( FAG, (SACp_flat_43, (AUD, (NHD, (NUQ, (FLO, (GLO, (NON, (NOT, (NDI, (FLO, ))))))))))), float))
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/sac2c/build_d/include/runtime/essentials_h/std.h:331:34: note: in definition of macro ‘SAC_ND_FUNAP2’
  331 | #define SAC_ND_FUNAP2(name, ...) name (__VA_ARGS__);
      |                                  ^~~~
Edited May 23, 2021 by Artem Shinkarov
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking