Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Regression: using literals in template types results in spurious error messages #212

Closed

Description

@guitargeek

Reproducer:

import cppyy

cppyy.cppdef("""

struct MyClass {
   MyClass(const char *color) {}
   MyClass(std::array<float, 3> rgb) {}
};

""")

cppyy.gbl.MyClass("r")

Right now it gives this error:

input_line_49:1:34: error: template argument for template type parameter must be a type
__Cppyy_AppendTypesSlow<float, 3> __Cppyy_s0;
                                 ^
input_line_48:1:22: note: template parameter is declared here
template<typename ...T> struct __Cppyy_AppendTypesSlow {};

Activity

  1. changed the title [-]Using literals in template types results in spurious error messages[/-] [+]Regression: using literals in template types results in spurious error messages[/+] on May 11, 2026
  2. guitargeek commented on Jun 29, 2026

    @guitargeek
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions