erpc icon indicating copy to clipboard operation
erpc copied to clipboard

[BUG] erpcgen fails when generating union with string for C

Open KomarekJan opened this issue 2 years ago • 1 comments

Describe the bug Erpcgen fails when generating shim code for C from IDL file that contains union with string.

To Reproduce

program testUnion

enum { A, B }

union unionWithString {
    case A:
        string b
    case B:
        int32 a
}

struct C {
    int32 discriminator
    unionWithString data @discriminator(discriminator)
}

interface test {
    unionTest(C a) -> void
}

On Windows fails with the exit code -1073741819

Expected behavior Generate shim code.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 10
  • eRPC Version: v1.10.0

Steps you didn't forgot to do

  • [x] I checked if there is no related issue opened/closed.
  • [x] I checked that there doesn't exist opened PR which is solving this issue.

Additional context

KomarekJan avatar Jul 19 '23 07:07 KomarekJan

Hi eRPC user. Thank you for your interest and welcome. We hope you will enjoy this framework well.

github-actions[bot] avatar Jul 19 '23 07:07 github-actions[bot]