Skip to content

Regression in libclang with template's default type parameters #585

Closed
@emilio

Description

@emilio

Using:

$ clang --version                                                                                                                                                                          
clang version 5.0.0 ([email protected]:llvm-mirror/clang 9d034c720c332a901de795c1528f6fbf437531a2) ([email protected]:llvm-mirror/llvm 5c49cf1beb13f4095a0fe1709d0da4ba310e13b1)
Target: x86_64-unknown-linux-gnu

cargo test generates the given diff compared with master:

diff --git a/tests/expectations/tests/what_is_going_on.rs b/tests/expectations/tests/what_is_going_on.rs
index e5194c02..d9af9c11 100644
--- a/tests/expectations/tests/what_is_going_on.rs
+++ b/tests/expectations/tests/what_is_going_on.rs
@@ -29,4 +29,4 @@ pub struct PointTyped<F> {
 impl <F> Default for PointTyped<F> {
     fn default() -> Self { unsafe { ::std::mem::zeroed() } }
 }
-pub type IntPoint = PointTyped<f32>;
+pub type IntPoint = PointTyped;

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