Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with -std=c++11, compiling cast-to-void* of cast-to-integer function #11912

Closed
llvmbot opened this issue Dec 12, 2011 · 3 comments
Closed
Labels
bugzilla Issues migrated from bugzilla c++11

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Dec 12, 2011

Bugzilla Link 11540
Resolution FIXED
Resolved on Dec 12, 2011 12:33
Version unspecified
OS Linux
Attachments Compiler output when attempting to compile testcase
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

Compiling this with -std=c++11 (on an x86-64 system, I de-aliased uintptr_t while minimizing) crashes Clang from earlier today:

void fun() { }

void cast()
{
(void*)(unsigned long int)fun;
}

This is a regression from sometime in the last couple weeks or so. Commandline spew and such are attached.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Dec 12, 2011

I cannot reproduce this with 146377, which revision are you using?

@llvmbot
Copy link
Collaborator Author

llvmbot commented Dec 12, 2011

[jwalden@wheres-wally src]$ cd ~/Programs/clang-build/llvm/
[jwalden@wheres-wally llvm]$ svn info
Path: .
URL: http://llvm.org/svn/llvm-project/llvm/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 146350
Node Kind: directory
Schedule: normal
Last Changed Author: ctopper
Last Changed Rev: 146344
Last Changed Date: 2011-12-11 14:12:35 -0500 (Sun, 11 Dec 2011)

[jwalden@wheres-wally llvm]$ cd tools/clang/
[jwalden@wheres-wally clang]$ svn info
Path: .
URL: http://llvm.org/svn/llvm-project/cfe/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 146350
Node Kind: directory
Schedule: normal
Last Changed Author: zaks
Last Changed Rev: 146343
Last Changed Date: 2011-12-11 13:43:40 -0500 (Sun, 11 Dec 2011)

@llvmbot
Copy link
Collaborator Author

llvmbot commented Dec 12, 2011

I was able to reproduce this with llvm 146344 and clang 146343, so this is already fixed on trunk.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla c++11
Projects
None yet
Development

No branches or pull requests

1 participant