Skip to content

C++ Generating Back End Adds Extra '...' #412

Closed

Description

@wchilders-nvidia

Issue Summary

When using the C++ generating back end with the included code an extra '...' is included:

__attribute((acquire_capability(Mutexes ( ) ... )...)) void

Reproducing Source Code

template <class... Mutexes>
__attribute__((acquire_capability(Mutexes()...)))
void lock_all(Mutexes&...);
int main() { return 0; }

Command-line Options

cpfe-cp --c++23 test.cpp

Type of Issue

[Back End] There is a problem with the generated C++ code.

Additional Details

No response

Reproducing (Standard) Configuration(s)

linux-gcc-debug

Reproducing (Non-standard) Configuration

No response

I acknowledge that:

  • I have checked open issues and existing discussions before filing this report.
  • The reproducing source code that I have provided does not depend on headers that I have not included with my submission.
  • I have reduced the reproducing source code to the best of my ability.
  • I have selected at least one standard configuration or uploaded a non-standard configuration dump.
  • I understand code shared via this form is NOT confidential.
  • I have permission to share the reproducing source code and grant permission for the project to use the source code (or derivatives of the source code) to create tests.
  • I agree that any tests created using the reproducing source code (or deriatives of it) will be licensed under project license unless I included a LICENSE.txt file in my .zip or .tar.gz upload. If I included a LICENSE.txt file, any tests created using the reproducing source code will be governed by the terms of the license I provided instead.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions