Skip to content

Crash in CodeGen for instantiating templated type with nullptr as function argument #15732

@llvmbot

Description

@llvmbot
Bugzilla Link 15360
Resolution FIXED
Resolved on Feb 27, 2013 16:13
Version trunk
OS MacOS X
Reporter LLVM Bugzilla Contributor
CC @dwblaikie,@DougGregor

Extended Description

Compiling the following causes a crash. Tested with 3.2 and trunk on OS X and Linux.

template<class C, void fn(C)>
struct type
{
virtual void f(int arg)
{
fn(arg);
}
};

type<int, nullptr> g;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++11

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions