From bugzilla-daemon at llvm.org Sat May 1 00:46:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 00:46:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5009] inliner missing opportunity with CPS style
code
In-Reply-To:
References:
Message-ID: <20100501054629.57BD83128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5009
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|DUPLICATE |
--- Comment #4 from Chris Lattner 2010-05-01 00:46:28 CDT ---
This is now a lot better than it was before, but we're still missing inlining
"quit" into main. All the indirection is gone though.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 01:39:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 01:39:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5009] inliner missing opportunity with CPS style
code
In-Reply-To:
References:
Message-ID: <20100501063957.3E45D3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5009
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2010-05-01 01:39:56 CDT ---
Fixed in r102830, we now compile this to:
define i32 @main() nounwind ssp {
entry:
tail call void @exit(i32 38) noreturn nounwind
unreachable
}
at -O2, -Os, and -O3.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 04:37:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 04:37:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7002] New: Cmake build of clang broken on FreeBSD
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7002
Summary: Cmake build of clang broken on FreeBSD
Product: Build scripts
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: 6yearold at gmail.com
CC: llvmbugs at cs.uiuc.edu
Both Debug and Release configurations gives this error on make:
http://pastebin.com/zjVuR8EJ
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 07:29:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 07:29:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6603] msp430 backend: wrong addressing mode for
'br' instruction
In-Reply-To:
References:
Message-ID: <20100501122901.A09153128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6603
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Anton Korobeynikov 2010-05-01 07:29:01 CDT ---
I cannot reproduce the problem with the attached testcases anymore, but I
believe r102834 fixed it. Please verify.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 07:52:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 07:52:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7001] DAG Combiner assertion: "Invalid truncate
node" on a simple loop
In-Reply-To:
References:
Message-ID: <20100501125253.569CA3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7001
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Anton Korobeynikov 2010-05-01 07:52:52 CDT ---
Fixed in r102838
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 08:50:39 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 08:50:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6861] invalid x86-64 instructions generated
In-Reply-To:
References:
Message-ID: <20100501135039.877ED3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6861
Jakub Staszak changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jakub Staszak 2010-05-01 08:50:39 CDT ---
Bug was fixed in r102672.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 08:57:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 08:57:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7003] New: Class DeltaTreeNode needs virtual
destructor
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7003
Summary: Class DeltaTreeNode needs virtual destructor
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: begert at gmail.com
CC: llvmbugs at cs.uiuc.edu
running cppcheck yields:
[./Rewrite/DeltaTree.cpp:55]: (error) Class DeltaTreeNode which is inherited by
class DeltaTreeInteriorNode does not have a virtual destructor
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 10:00:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 10:00:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7004] New: Failed to build project with
Boost.PropertyTree
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7004
Summary: Failed to build project with Boost.PropertyTree
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: osmano807 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Hello Today I decided to test clang++ with a project of mine, as it uses
Boost.PropertyTree parser for your configuration file.
Except that when I compile, gave this error:
In file included from /usr/include/boost/property_tree/ptree.hpp:515:
/usr/include/boost/property_tree/detail/ptree_implementation.hpp:749:51: error:
'Type' does not refer to a value
return child.get().get_value_optional(tr);
^
/usr/include/boost/property_tree/detail/ptree_implementation.hpp:744:20: note:
declared at
template
^
2 diagnostics generated.
With g++ compiles normal. I'm using Arch Linux, clang with version 2.7-2
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 10:01:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 10:01:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6794] Assertion failed: ((Result ||
D->isInvalidDecl()) && "declaration was not instantiated in this scope!")
In-Reply-To:
References:
Message-ID: <20100501150132.8B86D3128034@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6794
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #14 from Douglas Gregor 2010-05-01 10:01:31 CDT ---
Great! Closing again.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 10:02:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 10:02:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7004] Failed to build project with
Boost.PropertyTree
In-Reply-To:
References:
Message-ID: <20100501150252.849EE3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7004
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2010-05-01 10:02:52 CDT ---
Clang is correct, and GCC is wrong to compile this code. There is a missing
"template" keyword in that line, which should look like this:
return child.get().template get_value_optional(tr);
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 10:05:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 10:05:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6979] error: no type named ...
In-Reply-To:
References:
Message-ID: <20100501150516.F15C13128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6979
Albert Zeyer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Albert Zeyer 2010-05-01 10:05:16 CDT ---
Doesn't happen anymore with r102825.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 10:53:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 10:53:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7006] New: Missed struct allocation escape analysis
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7006
Summary: Missed struct allocation escape analysis
Product: new-bugs
Version: 2.7
Platform: Other
OS/Version: other
Status: NEW
Keywords: code-quality
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bearophile at mailas.com
CC: llvmbugs at cs.uiuc.edu
This little C program shows something I have found in a larger program:
#include "stdio.h"
#include "stdlib.h"
#define WITH_Y
typedef struct {
int x;
#ifdef WITH_Y
int y;
#endif
double z;
} Foo;
Foo *new_Foo(int n) {
Foo *f = (Foo *)malloc(sizeof(Foo));
f->x = n * 1;
#ifdef WITH_Y
f->y = n * 2;
#endif
f->z = n * 3;
return f;
}
int main() {
int n = atoi("20");
Foo *f = new_Foo(n);
printf("%f\n", f->z);
free(f);
return 0;
}
With the online llvm 2.7 demo, Optimization level: LTO
If WITH_Y is defined there is a malloc:
define i32 @main() nounwind {
entry:
%0 = tail call i32 @atoi(i8* getelementptr inbounds ([3 x i8]* @.str, i64 0,
i64 0)) nounwind readonly ; [#uses=2]
%1 = tail call noalias i8* @malloc(i64 16) nounwind ; [#uses=2]
%2 = bitcast i8* %1 to i32* ; [#uses=1]
store i32 %0, i32* %2, align 8
%3 = mul nsw i32 %0, 3 ; [#uses=1]
%4 = sitofp i32 %3 to double ; [#uses=1]
%5 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4
x i8]* @.str1, i64 0, i64 0), double %4) nounwind ; [#uses=0]
tail call void @free(i8* %1) nounwind
ret i32 0
}
If WITH_Y is not defined there isn't a malloc:
define i32 @main() nounwind {
entry:
%0 = tail call i32 @atoi(i8* getelementptr inbounds ([3 x i8]* @.str, i64 0,
i64 0)) nounwind readonly ; [#uses=1]
%1 = mul nsw i32 %0, 3 ; [#uses=1]
%2 = sitofp i32 %1 to double ; [#uses=1]
%3 = tail call i32 (i8*, ...)* @printf(i8* noalias getelementptr inbounds ([4
x i8]* @.str1, i64 0, i64 0), double %2) nounwind ; [#uses=0]
ret i32 0
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 11:01:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 11:01:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7007] New: fix suggestion for -Wreorder
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7007
Summary: fix suggestion for -Wreorder
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In the case that clang gives some -Wreorder warning like this:
In file included from
/Users/az/Programmierung/openlierox/src/gusanos/gui/detail/gss.cpp:12:
GUI/detail/gss-grammar.h.re:249:23: warning: field 'begin' will be initialized
after field 'marker' [-Wreorder]
TGrammar() : cur(-1), begin(0), marker(0), buffer(0), curp(0), limit(0),
line(1), syncTokens(false), ...
^
It would be nice if it also automatically outputs the code which would fix
this. In case you have several such warnings for a single constructor (because
the order is completely wrong), it's annoying to fix it by hand.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 11:34:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 11:34:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7009] New: error: empty parameter list defined with
a typedef of 'void' not allowed in C++
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7009
Summary: error: empty parameter list defined with a typedef of
'void' not allowed in C++
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In file included from
/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include/AL/alut.h:8:
/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:182:68: error: empty
parameter list defined with a
typedef of 'void' not allowed in C++
ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( ALCvoid );
Testcase:
typedef void V;
void foo(V);
The error says that this violates C++. GCC compiles it though. Should the
OpenAL headers be fixed?
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 12:33:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 12:33:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7003] Class DeltaTreeNode needs virtual destructor
In-Reply-To:
References:
Message-ID: <20100501173303.79FDF3128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7003
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2010-05-01 12:33:03 CDT ---
This is a false positive. We don't want delta tree to have a vtable, the
destruction path is handled by DeltaTreeNode::Destroy()
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 12:50:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 12:50:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7009] error: empty parameter list defined with a
typedef of 'void' not allowed in C++
In-Reply-To:
References:
Message-ID: <20100501175012.6DDD13128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7009
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rjmccall at apple.com
Resolution| |INVALID
--- Comment #1 from John McCall 2010-05-01 12:50:12 CDT ---
Clang is correct, this is forbidden in C++; only "(void)" is allowed. Also,
both clang and gcc accept this in C mode, and both clang and gcc reject this in
C++ mode, so I really see no incentive to change it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 12:59:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 12:59:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4919] llvm-gcc doesn't optimize simple factorial
into a loop
In-Reply-To:
References:
Message-ID: <20100501175919.3516B3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4919
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Chris Lattner 2010-05-01 12:59:18 CDT ---
This got fixed a long time ago.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sat May 1 13:03:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 1 May 2010 13:03:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7002] Cmake build of clang broken on FreeBSD
In-Reply-To:
References:
Message-ID: <20100501180306.4C0BD3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7002
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner 2010-05-01 13:03:05 CDT ---
pastebins are not stable. Here is the issue:
[ 81%] Building CXX object
tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Lexer.cpp.o
In file included from /usr/include/xmmintrin.h:42,
from /usr/include/emmintrin.h:34,
from
/home/arr/projects/llvm/llvm/tools/clang/lib/Lex/Lexer.cpp:1116:
/usr/include/mm_malloc.h:37: error: declaration of 'int posix_memalign(void**,
size_t, size_t) throw ()' throws different exceptions
/usr/include/stdlib.h:160: error: from previous declaration 'int
posix_memalign(void**, size_t, size_t)'
gmake[2]: *** [tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Lexer.cpp.o] Error 1
gmake[1]: *** [tools/clang/lib/Lex/CMakeFiles/clangLex.dir/all] Error 2
gmake: *** [all] Error 2
It looks to me that your system headers are incompatible. mm_malloc.h and
stdlib.h need to agree, this seems to be a likely bug in your system headers.
This probably doesn't work:
$ cat > t.cc
#include
#include
^D
$ gcc t.cc
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 02:06:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 02:06:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7010] New: template instantiation of function can't
find this function in the namespace
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7010
Summary: template instantiation of function can't find this
function in the namespace
Product: clang
Version: 2.7
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
--- testcase ---
template class Container { };
namespace Z {
template class Container> int x(const Container &s);
};
template class Container> int Z::x(const Container &s)
{
return 0;
}
--- output ---
pr.C:8:53: error: out-of-line definition of 'x' does not match any declaration
in namespace 'Z'
template class Container> int Z::x(const Container &s)
{
~~~^
1 diagnostic generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 02:12:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 02:12:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7011] New: variable length arrays error on constant
length array
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7011
Summary: variable length arrays error on constant length array
Product: clang
Version: 2.7
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
--- testcase ---
void f(int sz) {
const int sz_c = sz;
int i[sz_c];
}
--- output ---
pr.C:2:8: error: variable length arrays are not permitted in C++
int i[sz];
^
1 diagnostic generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 02:19:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 02:19:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7012] New: EBO issue when explicitly calling the
empty base's implicit constructor.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7012
Summary: EBO issue when explicitly calling the empty base's
implicit constructor.
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dnljms at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In the attached code, calling empty's constructor seems to zero the last byte
in the previous base class. It only seems to happen when 'empty' has an
implicit constructor that is explicitly called.
I found this testing quickbook from boost, it happens when running any of the
template tests at 'tools/quickbook/test'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 04:05:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 04:05:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7013] New: Error-on-valid and assert on templated
friend function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7013
Summary: Error-on-valid and assert on templated friend function
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4795)
--> (http://llvm.org/bugs/attachment.cgi?id=4795)
Code which causes error
I attach two closely related testcases, reduced from the same boost file. I
suspect they are both showing the same underlying error.
templates_with_int causes an error-on-valid. templates_without_int causes an
assert-on-valid.
The error produced by templates_with_int suggests to me that somehow the
template arguments are getting rearranged.
The backtrace produced by templates_without_int is:
clang: Type.cpp:611: bool clang::Type::isConstantSizeType() const: Assertion
`!isDependentType() && "This doesn't make sense for dependent types"' failed.
0 clang 0x000000000149a582
1 clang 0x000000000149a469
2 libpthread.so.0 0x00007f1d86df08f0
3 libc.so.6 0x00007f1d860e0a75 gsignal + 53
4 libc.so.6 0x00007f1d860e45c0 abort + 384
5 libc.so.6 0x00007f1d860d9941 __assert_fail + 241
6 clang 0x0000000000a29beb
7 clang 0x00000000005ba8ce
8 clang 0x00000000005b968b
9 clang 0x00000000005b9586
10 clang 0x0000000000642cb5
11 clang 0x00000000006412c6
12 clang 0x0000000000640e74
13 clang 0x00000000006414e6
14 clang 0x00000000006412a3
15 clang 0x0000000000640e74
16 clang 0x000000000066c99f
17 clang 0x000000000066d011
18 clang 0x000000000056e005
19 clang 0x000000000056bfa8
20 clang 0x000000000056b26c
21 clang 0x0000000000569884
22 clang 0x0000000000568601
23 clang 0x000000000041aad1
24 clang 0x000000000068ffbe
25 clang 0x0000000000437014
26 clang 0x0000000000436c7f
27 clang 0x00000000004212ff
28 clang 0x0000000000409172
29 clang 0x000000000040dce2 main + 259
30 libc.so.6 0x00007f1d860cbc4d __libc_start_main + 253
31 clang 0x0000000000407b49
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 140
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-E5zX5R.s -x c++ t.cc
1. parser at end of file
2. Per-file LLVM IR generation
3. t.cc:16:72: Generating code for declaration 'boost::op'
4. t.cc:19:3: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 07:02:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 07:02:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7014] New: "Using namespace" problem
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7014
Summary: "Using namespace" problem
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following code, reduced from a boost test case, is accepted by g++ and
Comeau, but rejected by clang. I can't find wording which would allow of forbid
it in the standard.
namespace X
{
namespace Y {}
}
using namespace X;
namespace Y = X::Y;
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 08:16:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 08:16:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7015] New: Assertion: Uses remain when a value is
destroyed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7015
Summary: Assertion: Uses remain when a value is destroyed
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4797)
--> (http://llvm.org/bugs/attachment.cgi?id=4797)
Asserting test case
The attached file, reduced from boost, causes an assertion. This file is, I
believe, fairly minimal.
There are other bugs with this error reported, but this test case is smaller.
It may fix the other problems at the same time.
t.cc:27:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
While deleting: label %init.check
Use still stuck around after Def is destroyed: br i1 %tobool, label
%init.check, label %init.end
clang: Value.cpp:75: virtual llvm::Value::~Value(): Assertion `use_empty() &&
"Uses remain when a value is destroyed!"' failed.
0 clang 0x000000000149c282
1 clang 0x000000000149c169
2 libpthread.so.0 0x00007fd05bc3e8f0
3 libc.so.6 0x00007fd05af2ea75 gsignal + 53
4 libc.so.6 0x00007fd05af325c0 abort + 384
5 libc.so.6 0x00007fd05af27941 __assert_fail + 241
6 clang 0x000000000142954e
7 clang 0x0000000001367c5d
8 clang 0x00000000011db740
9 clang 0x00000000011dae2b
10 clang 0x0000000001367d92
11 clang 0x00000000010f7222
12 clang 0x000000000140479f
13 clang 0x0000000001404469
14 clang 0x0000000001404119
15 clang 0x000000000041bdb0
16 clang 0x000000000041ab09
17 clang 0x000000000068f722
18 clang 0x0000000000437014
19 clang 0x0000000000436c7f
20 clang 0x00000000004212ff
21 clang 0x0000000000409172
22 clang 0x000000000040dce2 main + 259
23 libc.so.6 0x00007fd05af19c4d __libc_start_main + 253
24 clang 0x0000000000407b49
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 120
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-V3NHHe.s -x c++ t.cc
1. parser at end of file
2. Code generation
3. Running pass 'Remove unreachable blocks from the CFG' on function
'@_ZN5arrayI12basic_stringE2atEv'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 08:18:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 08:18:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7015] Assertion: Uses remain when a value is
destroyed
In-Reply-To:
References:
Message-ID: <20100502131852.33F603128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7015
Christopher Jefferson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Christopher Jefferson 2010-05-02 08:18:51 CDT ---
Many apologies. This is a dup of one of my own bugs!
*** This bug has been marked as a duplicate of bug 6980 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 09:20:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 09:20:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7011] 'variable length arrays are not permitted'
error on run-time computed length array
In-Reply-To:
References:
Message-ID: <20100502142000.369143128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7011
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Chris Lattner 2010-05-02 09:19:59 CDT ---
*** This bug has been marked as a duplicate of bug 5678 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 16:34:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 16:34:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7016] New: Assertion: 'declaration was not
instantiated in this scope' in boost code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7016
Summary: Assertion: 'declaration was not instantiated in this
scope' in boost code
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4800)
--> (http://llvm.org/bugs/attachment.cgi?id=4800)
Testcase
The attached test case (apologises for the size, if it very hard to debug,
report back, and I shall try my best to reduce it further) comes from a
boost::proto testcase and compiles fine in g++. It produces the following
backtrace.
~/Dropbox$ clang++ declaration_not_instantiated.cc -c -w
Assertion failed: (D->isInvalidDecl() && "declaration was not instantiated in
this scope!"), function getInstantiationOf, file SemaTemplateInstantiate.cpp,
line 1603.
0 clang 0x00f54489 PrintStackTrace(void*) + 45
1 clang 0x00f549d3 SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 libSystem.B.dylib 0x91d558e5 raise + 26
5 libSystem.B.dylib 0x91d6b99c abort + 93
6 libSystem.B.dylib 0x91d58544 __pthread_markcancel + 0
7 clang 0x0039f82f
clang::Sema::LocalInstantiationScope::getInstantiationOf(clang::Decl const*) +
249
8 clang 0x003cfd4b
clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*,
clang::MultiLevelTemplateArgumentList const&) + 147
9 clang 0x003a66ea (anonymous
namespace)::TemplateInstantiator::TransformDecl(clang::SourceLocation,
clang::Decl*) + 390
10 clang 0x003bea7a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformDeclRefExpr(clang::DeclRefExpr*) +
342
11 clang 0x003bef02 (anonymous
namespace)::TemplateInstantiator::TransformDeclRefExpr(clang::DeclRefExpr*) +
188
12 clang 0x003a8cb2 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 706
13 clang 0x003ae839 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 297
14 clang 0x003a90fe clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1806
15 clang 0x003bf039 clang::Sema::SubstExpr(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&) + 165
16 clang 0x003d4212 InstantiateInitializer(clang::Sema&,
clang::Expr*, clang::MultiLevelTemplateArgumentList const&,
clang::SourceLocation&, llvm::SmallVector&,
clang::ASTOwningVector<&(clang::ActionBase::DeleteExpr(void*)), 8u>&,
clang::SourceLocation&) + 579
17 clang 0x003d4b54 (anonymous
namespace)::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*) + 1124
18 clang 0x003d590c clang::DeclVisitor<(anonymous
namespace)::TemplateDeclInstantiator, clang::Decl*>::Visit(clang::Decl*) + 870
19 clang 0x003d6f37 clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 71
20 clang 0x003a5f56 (anonymous
namespace)::TemplateInstantiator::TransformDefinition(clang::SourceLocation,
clang::Decl*) + 58
21 clang 0x003a6000 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformDeclStmt(clang::DeclStmt*) + 100
22 clang 0x003a7ea2 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2108
23 clang 0x003a8533 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 115
24 clang 0x003bf0a3 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 53
25 clang 0x003a792a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 708
26 clang 0x003c2ad9 clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 165
27 clang 0x003d7b49
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1213
28 clang 0x003d74ba
clang::Sema::PerformPendingImplicitInstantiations(bool) + 328
29 clang 0x003d7cc4
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1592
30 clang 0x003d74ba
clang::Sema::PerformPendingImplicitInstantiations(bool) + 328
31 clang 0x003d7cc4
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1592
32 clang 0x003d74ba
clang::Sema::PerformPendingImplicitInstantiations(bool) + 328
33 clang 0x003d7cc4
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 1592
34 clang 0x003d74ba
clang::Sema::PerformPendingImplicitInstantiations(bool) + 328
35 clang 0x00240b89 clang::Sema::ActOnEndOfTranslationUnit() + 37
36 clang 0x0061322b
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 77
37 clang 0x0023ff35 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 426
38 clang 0x00063d6f clang::ASTFrontendAction::ExecuteAction() + 269
39 clang 0x00063e8c clang::FrontendAction::Execute() + 278
40 clang 0x00047ea3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
41 clang 0x0002ab7f cc1_main(char const**, char const**, char
const*, void*) + 1979
42 clang 0x0002eaa5 main + 272
43 clang 0x000298bd start + 53
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name
declaration_not_instantiated.cc -pic-level 1 -mdisable-fp-elim -target-cpu
yonah -resource-dir /usr/local/lib/clang/2.0 -w -ferror-limit 19
-ftemplate-backtrace-limit 10 -fmessage-length 129 -stack-protector 1 -fblocks
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-QWMM6y.s -x c++
declaration_not_instantiated.cc
1. parser at end of file
2. declaration_not_instantiated.cc:218:14: instantiating function definition
'boost::xpressive::detail::xpression_adaptor,
boost::xpressive::detail::static_xpression,
int> >, boost::xpressive::detail::matchable_ex >::match'
3. declaration_not_instantiated.cc:315:34: instantiating function definition
'boost::xpressive::detail::static_xpression,
boost::xpressive::detail::static_xpression,
int> >::match'
4. declaration_not_instantiated.cc:231:30: instantiating function definition
'boost::xpressive::detail::regex_byref_matcher::match'
5. declaration_not_instantiated.cc:208:39: instantiating function definition
'boost::xpressive::detail::push_context_match'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
~/Dropbox$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 18:18:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 18:18:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7017] New: Assertion failed : point of
instantiation must be valid!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7017
Summary: Assertion failed : point of instantiation must be
valid!
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4801)
--> (http://llvm.org/bugs/attachment.cgi?id=4801)
Testcase
The following test case, reduced from a boost instance, compiles in g++ and
asserts clang.
Backtrace:
~/Dropbox$ clang++ -c point_of.cc
Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"),
function setPointOfInstantiation, file
/Users/caj/clang/llvm/tools/clang/lib/Sema/../../include/clang/AST/DeclTemplate.h,
line 909.
0 clang 0x00f54489 PrintStackTrace(void*) + 45
1 clang 0x00f549d3 SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 libSystem.B.dylib 0x91d558e5 raise + 26
5 libSystem.B.dylib 0x91d6b99c abort + 93
6 libSystem.B.dylib 0x91d58544 __pthread_markcancel + 0
7 clang 0x003cc6fb
clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation)
+ 91
8 clang 0x003bd245
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 585
9 clang 0x003c44d7
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1609
10 clang 0x003da635
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&, std::pair) + 259
11 clang 0x003daabc
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&) + 114
12 clang 0x00345b48
clang::Sema::CompareReferenceRelationship(clang::SourceLocation,
clang::QualType, clang::QualType, bool&) + 442
13 clang 0x0034eabe clang::TryReferenceInit(clang::Sema&,
clang::Expr*&, clang::QualType, clang::SourceLocation, bool, bool) + 556
14 clang 0x0034f581 clang::TryCopyInitialization(clang::Sema&,
clang::Expr*, clang::QualType, bool, bool) + 106
15 clang 0x0034d02f
clang::Sema::AddOverloadCandidate(clang::FunctionDecl*, clang::DeclAccessPair,
clang::Expr**, unsigned int, clang::OverloadCandidateSet&, bool, bool) + 1171
16 clang 0x0031fbe5 TryConstructorInitialization(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
clang::Expr**, unsigned int, clang::QualType, clang::InitializationSequence&) +
792
17 clang 0x003238d1
clang::InitializationSequence::InitializationSequence(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
clang::Expr**, unsigned int) + 1009
18 clang 0x002bdcfb BuildImplicitBaseInitializer(clang::Sema&,
clang::CXXConstructorDecl*, ImplicitInitializerKind, clang::CXXBaseSpecifier*,
bool, clang::CXXBaseOrMemberInitializer*&) + 844
19 clang 0x002be3d0
clang::Sema::SetBaseOrMemberInitializers(clang::CXXConstructorDecl*,
clang::CXXBaseOrMemberInitializer**, unsigned int, bool) + 1022
20 clang 0x002be82e
clang::Sema::DefineImplicitCopyConstructor(clang::SourceLocation,
clang::CXXConstructorDecl*, unsigned int) + 262
21 clang 0x002da851
clang::Sema::MarkDeclarationReferenced(clang::SourceLocation, clang::Decl*) +
635
22 clang 0x002bea62
clang::Sema::DefineImplicitCopyConstructor(clang::SourceLocation,
clang::CXXConstructorDecl*, unsigned int) + 826
23 clang 0x002da851
clang::Sema::MarkDeclarationReferenced(clang::SourceLocation, clang::Decl*) +
635
24 clang 0x0034a3c5
clang::Sema::BestViableFunction(clang::OverloadCandidateSet&,
clang::SourceLocation, clang::OverloadCandidate*&) + 487
25 clang 0x0031ef6c CopyObject(clang::Sema&, clang::QualType,
clang::InitializedEntity const&,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>, bool) + 1055
26 clang 0x003255f7
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteExpr(void*))>, clang::QualType*)
+ 3937
27 clang 0x00326fe5
clang::Sema::PerformCopyInitialization(clang::InitializedEntity const&,
clang::SourceLocation,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>) + 425
28 clang 0x00358ea4
clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int,
clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) + 2170
29 clang 0x002f3a99 clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperator::Opcode, clang::Expr*,
clang::Expr*) + 295
30 clang 0x002f3c41 clang::Sema::ActOnBinOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>) + 263
31 clang 0x005eade5
clang::Parser::ParseRHSOfBinaryExpression(clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>,
clang::prec::Level) + 2501
32 clang 0x005e339e clang::Parser::ParseAssignmentExpression() +
444
33 clang 0x005e37db clang::Parser::ParseExpression() + 25
34 clang 0x00603fc3
clang::Parser::ParseStatementOrDeclaration(bool) + 1679
35 clang 0x006086cb clang::Parser::ParseCompoundStatementBody(bool)
+ 215
36 clang 0x00608d2f
clang::Parser::ParseFunctionStatementBody(clang::OpaquePtr<0>) + 199
37 clang 0x00612362
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1196
38 clang 0x005d5f15
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 483
39 clang 0x006113df
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AttributeList*, clang::AccessSpecifier) + 1001
40 clang 0x0061142c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*,
clang::AccessSpecifier) + 66
41 clang 0x006131a4
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2222
42 clang 0x006132ea
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 268
43 clang 0x0023ff35 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 426
44 clang 0x00063d6f clang::ASTFrontendAction::ExecuteAction() + 269
45 clang 0x00063e8c clang::FrontendAction::Execute() + 278
46 clang 0x00047ea3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
47 clang 0x0002ab7f cc1_main(char const**, char const**, char
const*, void*) + 1979
48 clang 0x0002eaa5 main + 272
49 clang 0x000298bd start + 53
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name point_of.cc -pic-level
1 -mdisable-fp-elim -target-cpu yonah -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 129
-stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-nM1uAs.s -x c++
point_of.cc
1. point_of.cc:32:23: current parser token ';'
2. point_of.cc:29:1: parsing function body 'test_main'
3. point_of.cc:29:1: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
~/Dropbox$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Sun May 2 21:39:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 2 May 2010 21:39:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7018] New: UNREACHABLE executed at
SelectionDAG.cpp:653!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7018
Summary: UNREACHABLE executed at SelectionDAG.cpp:653!
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
Seen on x64. I cannot repro with opt (which doesn't have -Os?).
regehr at gamow tmp410]$ clang -v
clang version 2.0 (trunk 102880)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow tmp410]$ clang -Os small.c
0x2cc1db0: i16,ch = <> 0x0, 0x0, 0x0 [ID=10]
Node is not in map!
UNREACHABLE executed at SelectionDAG.cpp:653!
0 clang 0x00000000012675ef
1 clang 0x00000000012694f2
2 libpthread.so.0 0x00007fdecbf83190
3 libc.so.6 0x00007fdecb2894b5 gsignal + 53
4 libc.so.6 0x00007fdecb28cf50 abort + 384
5 clang 0x000000000123cc24
6 clang 0x0000000000d36251
7 clang 0x0000000000d37639
8 clang 0x0000000000d030e8
9 clang 0x0000000000d03fbb
10 clang 0x0000000000d1bf56
11 clang 0x0000000000d1d4fb
12 clang 0x0000000000d1e00f
13 clang 0x0000000000d9754d
14 clang 0x0000000000d99570
15 clang 0x0000000000d99ca4
16 clang 0x0000000000d9a54e
17 clang 0x00000000011eabbd
18 clang 0x00000000011ead9b
19 clang 0x00000000011eb05f
20 clang 0x00000000004154f7
21 clang 0x0000000000415d75
22 clang 0x000000000060e15f
23 clang 0x0000000000419841
24 clang 0x0000000000409c2b
25 clang 0x000000000040cf33 main + 2499
26 libc.so.6 0x00007fdecb274abd __libc_start_main + 253
27 clang 0x0000000000407479
Stack dump:
0. Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r102880-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r102880-install/lib/clang/2.0
-Os -ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 79
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-VazXB9.s
-x c small.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@uint161'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
[regehr at gamow tmp410]$ cat small.c
typedef short int int16_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
static uint8_t
safe_mul_func_int16_t_s_s (int16_t si1, int16_t si2)
{
return si1 && si2 && si1 > +si2 || si1 && si2 && si2 < +si1 || si1 && si2
&& si1 < +si2 || si1 && si2 && si1 && si2 < +si1 ? : si1 * si2;
}
static uint8_t
safe_mul_func_uint8_t_u_u (uint8_t ui1, uint8_t ui2)
{
return ui1 * ui2;
}
int safe (int);
int uint161 (void)
{
uint8_t l_305[3];
int i, j, k;
uint16_t l_308[8];
for (i = 0; i < 8; i++)
l_308[i] = 0;
if (safe
(safe_mul_func_int16_t_s_s
(l_305[1] <= 0, safe_mul_func_uint8_t_u_u (l_308[4], l_308[4]))), 0)
{
}
return 0;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 01:10:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 01:10:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7012] EBO issue when explicitly calling the empty
base's implicit constructor.
In-Reply-To:
References:
Message-ID: <20100503061015.9018F3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7012
Anders Carlsson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Anders Carlsson 2010-05-03 01:10:15 CDT ---
Yup! Fixed in r102891.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 03:32:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 03:32:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7019] New: Definition and Declaration if
LLVMUnionType do not match
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7019
Summary: Definition and Declaration if LLVMUnionType do not
match
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jos.decoster at gmail.com
CC: llvmbugs at cs.uiuc.edu
Hi,
The definition of the LLVMUnionType function in Core.cpp:
LLVMTypeRef LLVMUnionType(LLVMTypeRef *ElementTypes,
unsigned ElementCount, int Packed)
is different from the declaration in Core.h:
LLVMTypeRef LLVMUnionType(LLVMTypeRef *ElementTypes, unsigned ElementCount);
Kind regards,
Jos.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 04:20:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 04:20:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7021] New: Not copying anonymous unions by default
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7021
Summary: Not copying anonymous unions by default
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dnljms at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4803)
--> (http://llvm.org/bugs/attachment.cgi?id=4803)
Test copying anonymous unions.
In the attached test the anonymous union doesn't get copied correctly.
In boost, this causes 'libs/spirit/classic/test/ast_calc_tests.cpp' to fail
(which isn't included in the regression tests, as it's from the old version of
spirit).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 05:24:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 05:24:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7022] New: Assert `isa(Val) && "cast()
argument of incompatible type!"' on valid code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7022
Summary: Assert `isa(Val) && "cast() argument of
incompatible type!"' on valid code
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4805)
--> (http://llvm.org/bugs/attachment.cgi?id=4805)
Asserting test case derived from boost
The following testcase, derived from boost, is I believe valid code and causes
an assertion on clang++.
This bug may be related to #6310 as it is the same assertion.
Assertion failed: (isa(Val) && "cast() argument of incompatible type!"),
function cast, file /Users/caj/clang/llvm/include/llvm/Support/Casting.h, line
202.
0 clang 0x00f54489 PrintStackTrace(void*) + 45
1 clang 0x00f549d3 SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 libSystem.B.dylib 0x91d558e5 raise + 26
5 libSystem.B.dylib 0x91d6b99c abort + 93
6 libSystem.B.dylib 0x91d58544 __pthread_markcancel + 0
7 clang 0x003d87a5 llvm::cast_retty::ret_type llvm::cast(clang::TypeLoc* const&) + 91
8 clang 0x003d19aa (anonymous
namespace)::TemplateDeclInstantiator::SubstFunctionType(clang::FunctionDecl*,
llvm::SmallVectorImpl&) + 572
9 clang 0x003d1c9f (anonymous
namespace)::TemplateDeclInstantiator::VisitCXXMethodDecl(clang::CXXMethodDecl*,
clang::TemplateParameterList*) + 471
10 clang 0x003d5864 clang::DeclVisitor<(anonymous
namespace)::TemplateDeclInstantiator, clang::Decl*>::Visit(clang::Decl*) + 702
11 clang 0x003d6f37 clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 71
12 clang 0x003bd3bb
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 959
13 clang 0x003c44d7
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1609
14 clang 0x003da635
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&, std::pair) + 259
15 clang 0x003daabc
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&) + 114
16 clang 0x003131ae
clang::Sema::ActOnCXXTypeConstructExpr(clang::SourceRange, void*,
clang::SourceLocation,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteExpr(void*))>,
clang::SourceLocation*, clang::SourceLocation) + 754
17 clang 0x0039c60f clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildCXXUnresolvedConstructExpr(clang::SourceLocation,
clang::QualType, clang::SourceLocation,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteExpr(void*))>,
clang::SourceLocation*, clang::SourceLocation) + 201
18 clang 0x003b5d25 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCXXUnresolvedConstructExpr(clang::CXXUnresolvedConstructExpr*)
+ 1053
19 clang 0x003aa2e8 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 6392
20 clang 0x003bf039 clang::Sema::SubstExpr(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&) + 165
21 clang 0x002e8a0c
clang::Sema::BuildCXXDefaultArgExpr(clang::SourceLocation,
clang::FunctionDecl*, clang::ParmVarDecl*) + 466
22 clang 0x002f5879
clang::Sema::GatherArgumentsForCall(clang::SourceLocation,
clang::FunctionDecl*, clang::FunctionProtoType const*, unsigned int,
clang::Expr**, unsigned int, llvm::SmallVector&,
clang::Sema::VariadicCallType) + 759
23 clang 0x002b0f13
clang::Sema::CompleteConstructorCall(clang::CXXConstructorDecl*,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteExpr(void*))>,
clang::SourceLocation,
clang::ASTOwningVector<&(clang::ActionBase::DeleteExpr(void*)), 8u>&) + 313
24 clang 0x00326485
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteExpr(void*))>, clang::QualType*)
+ 7663
25 clang 0x002823ce
clang::Sema::ActOnUninitializedDecl(clang::OpaquePtr<0>, bool) + 1906
26 clang 0x005d5d1b
clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 2513
27 clang 0x005d5fe5
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 691
28 clang 0x005d63f6 clang::Parser::ParseSimpleDeclaration(unsigned
int, clang::SourceLocation&, clang::AttributeList*, bool) + 340
29 clang 0x005d66b7 clang::Parser::ParseDeclaration(unsigned int,
clang::SourceLocation&, clang::CXX0XAttributeList) + 669
30 clang 0x00603e95
clang::Parser::ParseStatementOrDeclaration(bool) + 1377
31 clang 0x006086cb clang::Parser::ParseCompoundStatementBody(bool)
+ 215
32 clang 0x00608d2f
clang::Parser::ParseFunctionStatementBody(clang::OpaquePtr<0>) + 199
33 clang 0x00612362
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 1196
34 clang 0x005d5f15
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 483
35 clang 0x006113df
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AttributeList*, clang::AccessSpecifier) + 1001
36 clang 0x0061142c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*,
clang::AccessSpecifier) + 66
37 clang 0x006131a4
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2222
38 clang 0x006132ea
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 268
39 clang 0x0023ff35 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 426
40 clang 0x00063d6f clang::ASTFrontendAction::ExecuteAction() + 269
41 clang 0x00063e8c clang::FrontendAction::Execute() + 278
42 clang 0x00047ea3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
43 clang 0x0002ab7f cc1_main(char const**, char const**, char
const*, void*) + 1979
44 clang 0x0002eaa5 main + 272
45 clang 0x000298bd start + 53
46 clang 0x00000020 start + 4294797208
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name incompatible_type.cc
-pic-level 1 -mdisable-fp-elim -target-cpu yonah -resource-dir
/usr/local/lib/clang/2.0 -ferror-limit 19 -ftemplate-backtrace-limit 10
-fmessage-length 107 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-3Ha7WB.s -x c++
incompatible_type.cc
1. incompatible_type.cc:18:17: current parser token ';'
2. incompatible_type.cc:16:1: parsing function body 'm'
3. incompatible_type.cc:16:1: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 07:25:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 07:25:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6310] clang codegen fails with clang:
/home/corni/clang/llvm/include/llvm/Support/Casting.h:200: typename
llvm::cast_retty::ret_type llvm::cast(const Y&) [with X = clang::VarDecl,
Y = const clang::NamedDecl*]: Assertion `isa(Val) && "cast() arg
In-Reply-To:
References:
Message-ID: <20100503122500.5A1013128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6310
Cornelius changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #5 from Cornelius 2010-05-03 07:24:59 CDT ---
yes, this was fixed some time ago.
*** This bug has been marked as a duplicate of bug 6460 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 09:19:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 09:19:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7023] New: GVN slow on large function with lots of
instructions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7023
Summary: GVN slow on large function with lots of instructions
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4806)
--> (http://llvm.org/bugs/attachment.cgi?id=4806)
l2.bc
LLVM 2.7 Release-Asserts build, GVN takes 0.7s on the attached bitcode (and
even more on some even larger bitcodes).
This is important in mesa's llvmpipe, where GVN takes up most of the
optimization time (and thus optimization time is higher than actual codegen
time)
;opt 650 ms (shader39)
;codegen 340 ms (shader39)
...
;opt 910 ms (shader76)
;codegen 430 ms (shader76)
;opt 930 ms (shader77)
;codegen 430 ms (shader77)
$ opt -gvn l2.bc -time-passes
Total Execution Time: 0.7320 seconds (0.7351 wall clock)
---User Time--- --System Time-- --User+System-- ---Wall Time--- ---
Name ---
0.7200 ( 99.4%) 0.0080 (100.0%) 0.7280 ( 99.5%) 0.7311 ( 99.5%)
Global Value Numbering
0.0040 ( 0.6%) 0.0000 ( 0.0%) 0.0040 ( 0.5%) 0.0038 ( 0.5%)
Module Verifier
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%)
Memory Dependence Analysis
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0001 ( 0.0%)
Dominator Tree Construction
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%)
Preliminary module verification
0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) Basic
Alias Analysis (default AA impl)
0.7240 (100.0%) 0.0080 (100.0%) 0.7320 (100.0%) 0.7351 (100.0%) TOTAL
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 09:31:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 09:31:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7024] New: Private access error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7024
Summary: Private access error
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
template class A {
int foo;
int getFoo(A &a) {
return a.foo;
}
};
C:\Sony\Clang\exp>clang -cc1 templ1.cpp
templ1.cpp:4:13: error: 'foo' is a private member of 'A'
return a.foo;
^
templ1.cpp:2:6: note: declared private here
int foo;
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 09:50:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 09:50:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 3328] analyze <= and >= loops
In-Reply-To:
References:
Message-ID: <20100503145018.872CF312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3328
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Dan Gohman 2010-05-03 09:50:18 CDT ---
This is now fixed on trunk.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 10:18:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 10:18:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7021] Not copying anonymous unions by default
In-Reply-To:
References:
Message-ID: <20100503151837.508663128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7021
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-05-03 10:18:37 CDT ---
Fixed in r102913
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 10:32:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 10:32:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7022] Assertion instantiating member function
declared via typedef
In-Reply-To:
References:
Message-ID: <20100503153229.6CF973128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7022
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-05-03 10:32:28 CDT ---
Fixed in r102914.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 10:37:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 10:37:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7014] "Using namespace" problem
In-Reply-To:
References:
Message-ID: <20100503153743.8E8CC3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7014
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-05-03 10:37:43 CDT ---
Fixed in r102915.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 10:44:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 10:44:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7017] Assertion failed : point of instantiation
must be valid!
In-Reply-To:
References:
Message-ID: <20100503154406.A81713128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7017
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-05-03 10:44:06 CDT ---
Fixed in r102916.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 11:17:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 11:17:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7025] New: __attribute__((regparm(3))) breaks
declaratio <-> definition mapping
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7025
Summary: __attribute__((regparm(3))) breaks declaratio <->
definition mapping
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: syntheticpp at gmx.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
When compiling Qt 4.7, building qmake stops due to this error,
(QT_FASTCALL is defined to __attribute__((regparm(3))) ):
src/corelib/tools/qchar.cpp:707:12: error: conflicting types for 'digitValue'
int QChar::digitValue(ushort ucs2)
^
...
In file included from include/QtCore/qchar.h:1:
src/corelib/tools/qchar.h:315:28: note: previous declaration is here
static int QT_FASTCALL digitValue(ushort ucs2);
^
...
src/corelib/tools/qchar.cpp:717:12: error: conflicting types for 'digitValue'
int QChar::digitValue(uint ucs4)
...
In file included from
include/QtCore/qchar.h:1:
src/corelib/tools/qchar.h:314:28: note: previous declaration is here
static int QT_FASTCALL digitValue(uint ucs4);
^
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 11:50:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 11:50:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6218] Broken debug info for almost every c++ app
In-Reply-To:
References:
Message-ID: <20100503165022.2A5253128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6218
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #3 from Anton Korobeynikov 2010-05-03 11:50:21 CDT ---
(In reply to comment #2)
> I'm experiencing the same problem. Could you explain what kind of problems
> binutils had?
I verified twice and it seems to be the problem with clang's debug info
generation
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 12:15:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 12:15:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7026] New: Loop unroll thinks inline assembly
blocks are function calls and does not unroll loops having them
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7026
Summary: Loop unroll thinks inline assembly blocks are function
calls and does not unroll loops having them
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pekka.jaaskelainen at tut.fi
CC: llvmbugs at cs.uiuc.edu
LLVM 2.7 does not unroll loops with inline assembly in the body.
This is caused by the following new code in LoopUnrollPass.cpp:
+ unsigned NumCalls;
+ unsigned LoopSize = ApproximateLoopSize(L, NumCalls);
+ DEBUG(dbgs() << " Loop Size = " << LoopSize << "\n");
+ if (NumCalls != 0) {
+ DEBUG(dbgs() << " Not unrolling loop with function calls.\n");
+ return false;
+ }
The NumCalls should not include the inline assembly calls, I think.
This code is in the current trunk also.
This is quite a bad performance regression to us in the TCE project as we
heavily use custom operations available in the designed target processor by
means of inline assembly, and loop unroll is quite important optimization for a
static VLIW-style architecture like ours for extracting static instruction
level parallelism from the loops.
Should be an issue also for other targets with special instructions as quite
often performance critical loops are optimized with inline assembly access to
special instructions which also benefit from unrolling.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 12:17:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 12:17:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7027] New: crash without assert in boost code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7027
Summary: crash without assert in boost code
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4807)
--> (http://llvm.org/bugs/attachment.cgi?id=4807)
Crashing testcase
The attached testsuite crashes, without an assert. It is (I believe) valid
code, reduced from a boost test case.
~/Dropbox$ clang++ crash_without_assert.cpp -c -w
0 clang 0x00f54489 PrintStackTrace(void*) + 45
1 clang 0x00f549d3 SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 clang 0x00c3f559 llvm::isa_impl::doit(llvm::Value const&) + 17
5 clang 0x00706c99 llvm::isa_impl_wrap::doit(llvm::Value const&) + 17
6 clang 0x009c7d85 bool
llvm::isa_impl_cl::isa(llvm::Value const&) + 17
7 clang 0x00706caf bool
llvm::isa_impl_cl::isa(llvm::Value*) + 17
8 clang 0x00de9467 bool llvm::isa(llvm::Value* const&) + 19
9 clang 0x006df3b5 llvm::cast_retty::ret_type llvm::dyn_cast(llvm::Value* const&) + 17
10 clang 0x001b2bee llvm::IRBuilder
>::CreateConstInBoundsGEP2_32(llvm::Value*, unsigned int, unsigned int,
llvm::Twine const&) + 138
11 clang 0x001b2cb4 llvm::IRBuilder >::CreateStructGEP(llvm::Value*, unsigned
int, llvm::Twine const&) + 46
12 clang 0x0018d04a (anonymous
namespace)::AggExprEmitter::VisitUnaryAddrOf(clang::UnaryOperator const*) + 336
13 clang 0x0018eb2c clang::StmtVisitor<(anonymous
namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 1088
14 clang 0x0018f5f7
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, llvm::Value*,
bool, bool, bool, bool) + 293
15 clang 0x001866bc
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*,
bool, bool, bool) + 264
16 clang 0x001eb5b8
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 488
17 clang 0x001ecea9
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, llvm::Value*, bool) + 253
18 clang 0x001ed092
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 182
19 clang 0x001eb428
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 88
20 clang 0x00167f26
clang::CodeGen::CodeGenFunction::EmitConstructorBody(llvm::SmallVector, 16u>&) + 382
21 clang 0x00210433
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1211
22 clang 0x0015cff0
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 272
23 clang 0x0021934b
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 205
24 clang 0x00219dda clang::CodeGen::CodeGenModule::EmitDeferred() +
360
25 clang 0x0021a010 clang::CodeGen::CodeGenModule::Release() + 24
26 clang 0x00231352 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) + 88
27 clang 0x00044e66 (anonymous
namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 100
28 clang 0x0024002c clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 673
29 clang 0x00063d6f clang::ASTFrontendAction::ExecuteAction() + 269
30 clang 0x00063e8c clang::FrontendAction::Execute() + 278
31 clang 0x00047ea3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
32 clang 0x0002ab7f cc1_main(char const**, char const**, char
const*, void*) + 1979
33 clang 0x0002eaa5 main + 272
34 clang 0x000298bd start + 53
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name
crash_without_assert.cpp -pic-level 1 -mdisable-fp-elim -target-cpu yonah
-resource-dir /usr/local/lib/clang/2.0 -w -ferror-limit 19
-ftemplate-backtrace-limit 10 -fmessage-length 119 -stack-protector 1 -fblocks
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-8ie7Vq.s -x c++
crash_without_assert.cpp
1. parser at end of file
2. Per-file LLVM IR generation
3. crash_without_assert.cpp:14:1: Generating code for declaration
'massive_hash_function_test::massive_hash_function_test'
4. crash_without_assert.cpp:15:1: LLVM IR generation of compound statement
('{}')
clang: error: compiler command failed due to signal 10 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 12:26:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 12:26:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7028] New: Assertion in CGClass.cpp
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7028
Summary: Assertion in CGClass.cpp
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4809)
--> (http://llvm.org/bugs/attachment.cgi?id=4809)
Unreduced testcase
$ ./clang++ qresource.ii
clang: /home/asl/proj/llvm/src/tools/clang/lib/CodeGen/CGClass.cpp:732: void
clang::CodeGen::CodeGenFunction::EmitCtorPrologue(const
clang::CXXConstructorDecl*, clang::CXXCtorType): Assertion
`LiveTemporaries.empty() && "Should not have any live temporaries at
initializer start!"' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 12:28:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 12:28:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7029] New: Assertion in Sema
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7029
Summary: Assertion in Sema
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4810)
--> (http://llvm.org/bugs/attachment.cgi?id=4810)
Unreduced testcase
$ ./clang++ qfilesystemwatcher_inotify.ii
/usr/include/sys/inotify.h:36:8: error: cannot initialize a parameter of type
'void *' with an rvalue of type 'char (*)[]'
struct inotify_event
^~~~~~~~~~~~~
In file included from io/qfilesystemwatcher_inotify.cpp:1:
io/qfilesystemwatcher_inotify.cpp:366:13: note: in instantiation of member
function 'QMap::insert'
requested here
eventForId.insert(event->wd, *event);
^
clang: /home/asl/proj/llvm/src/tools/clang/lib/Sema/SemaDeclCXX.cpp:4495: void
clang::Sema::DefineImplicitCopyAssignment(clang::SourceLocation,
clang::CXXMethodDecl*): Assertion `!Call.isInvalid() && "Call to
__builtin_memcpy cannot fail!"' failed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 13:07:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 13:07:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4174] LoopIndexSplit executes loop body too many
times!
In-Reply-To:
References:
Message-ID: <20100503180715.D9E3F3128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4174
devang.patel changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |devang.patel at gmail.com
Resolution| |FIXED
--- Comment #10 from devang.patel 2010-05-03 13:07:15 CDT ---
Looks good. Applied. r102928.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 13:14:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 13:14:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7030] New: [META] Compiling Loki with clang
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7030
Summary: [META] Compiling Loki with clang
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: syntheticpp at gmx.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Wasn't there a time when Loki was THE stress-test for C++ compilers? ;)
clang++ fails compiling with this errors:
In file included from SmartPtr.cpp:20:
../include/loki/SmartPtr.h:1418:24: error: expected unqualified-id
return OP::template Merge( rhs );
Reproduce:
svn co https://loki-lib.svn.sourceforge.net/svnroot/loki-lib
cd trunk
export CXX=clang++
make
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 13:55:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 13:55:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5210] clang crashes when parsing bogus c++ method
definition
In-Reply-To:
References:
Message-ID: <20100503185541.0CB053128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5210
Nuno Lopes changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #5 from Nuno Lopes 2010-05-03 13:55:40 CDT ---
thanks for the heads up. It's fixed in my machine as well.
Valgrind still reports a few memory leaks, but there are many more to be fixed
first.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 14:04:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 14:04:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7031] New: 'Linear Scan Register Allocator' + -g
crashes
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7031
Summary: 'Linear Scan Register Allocator' + -g crashes
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4813)
--> (http://llvm.org/bugs/attachment.cgi?id=4813)
test case
pes delta$ clang -O2 -c bwn.c && echo success
...warnings....
success
pes delta$ clang -O2 -g -c bwn.c && echo success
....warnings...
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name bwn.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -g -resource-dir /usr/local/lib/clang/2.0
-O2 -ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 152
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-DG7JQf.s
-x c bwn.c
1. parser at end of file
2. Code generation
3. Running pass 'Linear Scan Register Allocator' on function
'@bwn_key_dowrite'
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 14:34:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 14:34:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7032] New: Sizeless array definition in class
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7032
Summary: Sizeless array definition in class
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
class __attribute__ ((aligned(16))) test {
int m;
__attribute__ ((aligned(16))) unsigned int mDummy[];
};
C:\Sony\Clang\exp>clang -cc1 AttributeAligned.cpp
AttributeAligned.cpp:3:44: error: field has incomplete type 'unsigned int []'
__attribute__ ((aligned(16))) unsigned int mDummy[];
^
1 error generated.
I suppose this is not necessarily a bug, but it compiles in gcc. The user is
using the field to align the class size, which is why I left in the alignment
attributes.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 15:00:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 15:00:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7027] crash without assert in boost code
In-Reply-To:
References:
Message-ID: <20100503200038.EB6B73128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7027
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-05-03 15:00:38 CDT ---
Fixed in r102942.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 15:22:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 15:22:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7016] Assertion: 'declaration was not instantiated
in this scope' in boost code
In-Reply-To:
References:
Message-ID: <20100503202256.4BDF3312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7016
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2010-05-03 15:22:55 CDT ---
Fixed in r102945.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 16:34:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 16:34:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7033] New: Error on cast involving const and non
const cast operators
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7033
Summary: Error on cast involving const and non const cast
operators
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
class String
{
public:
String();
operator char *();
operator const char *();
};
String s;
const char * p = (const char *)s;
C:\Sony\Clang\exp>clang -cc1 pctchar.cpp
pctchar.cpp:9:18: error: cannot cast from type 'String' to pointer type 'char
const *'
const char * p = (const char *)s;
^~~~~~~~~~~~~~
1 error generated.
gcc compiles the above without error.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 16:37:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 16:37:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7019] Definition and Declaration if LLVMUnionType
do not match
In-Reply-To:
References:
Message-ID: <20100503213703.D0E75312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7019
Nick Lewycky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #1 from Nick Lewycky 2010-05-03 16:37:03 CDT ---
Fixed in r102959. Thanks for the bug report!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 16:40:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 16:40:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6980] Assertion in boost::exception test
In-Reply-To:
References:
Message-ID: <20100503214036.D824C3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6980
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from John McCall 2010-05-03 16:40:36 CDT ---
Fixed in r102961.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 17:51:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 17:51:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6941] x86-64 regalloc miscompilation
In-Reply-To:
References:
Message-ID: <20100503225132.6B7093128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6941
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Jakob Stoklund Olesen 2010-05-03 17:51:32 CDT ---
Fixed here: http://llvm.org/viewvc/llvm-project?rev=102770&view=rev
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 18:30:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 18:30:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7013] Error-on-valid and assert on templated friend
function
In-Reply-To:
References:
Message-ID: <20100503233001.DC5483128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7013
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2010-05-03 18:30:01 CDT ---
Fixed in r102974.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 19:19:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 19:19:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7034] New: Are default args allowed in template
function definitions?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7034
Summary: Are default args allowed in template function
definitions?
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
template class test
{
void func(int a);
};
template inline void test::func(int a = 1) {}
clang -cc1 hashset.cpp
hashset.cpp:5:53: error: default arguments cannot be added to an out-of-line
definition of a member of a class template
template inline void test::func(int a = 1) {}
^ ~
This compiles without error in gcc.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 20:54:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 20:54:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7028] Assertion in CGClass.cpp
In-Reply-To:
References:
Message-ID: <20100504015405.EA3B23128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7028
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from John McCall 2010-05-03 20:54:05 CDT ---
Fixed in r102998.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Mon May 3 21:25:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 3 May 2010 21:25:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7035] New: Qualifiers with extern?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7035
Summary: Qualifiers with extern?
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
namespace A {
void f();
}
extern void A::f();
clang -cc1 extqual.cpp
extqual.cpp:4:16: error: out-of-line declaration of a member must be a
definition
extern void A::f();
~~~^
This compiles in gcc. It appears gcc allows a lot of things I wouldn't expect.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 00:11:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 00:11:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7024] Private access error
In-Reply-To:
References:
Message-ID: <20100504051156.CBBFE312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7024
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from John McCall 2010-05-04 00:11:56 CDT ---
Fixed in r102999.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 02:47:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 02:47:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7031] 'Linear Scan Register Allocator' + -g crashes
In-Reply-To:
References:
Message-ID: <20100504074745.31F683128034@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7031
Roman Divacky changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Roman Divacky 2010-05-04 02:47:44 CDT ---
yes, it's fixed, thnx!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 03:01:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 03:01:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7036] New: Redundant "andl $1, %eax" instruction
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7036
Summary: Redundant "andl $1, %eax" instruction
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mdevan.foobar at gmail.com
CC: llvmbugs at cs.uiuc.edu
[Linux/amd64, LLVM r100854]
LLVM seems to like adding a redundant "andl $1, %eax" instruction in the code
generated (via clang) for the C code:
------------------------------------------------------------
extern int f();
int test(int a) { return a && f(); }
------------------------------------------------------------
define i32 @test(i32 %a) nounwind {
entry:
%tobool = icmp eq i32 %a, 0 ; [#uses=1]
br i1 %tobool, label %land.end, label %land.rhs
land.rhs: ; preds = %entry
%call = tail call i32 (...)* @f() nounwind ; [#uses=1]
%tobool1 = icmp ne i32 %call, 0 ; [#uses=1]
br label %land.end
land.end: ; preds = %entry, %land.rhs
%0 = phi i1 [ false, %entry ], [ %tobool1, %land.rhs ] ; [#uses=1]
%land.ext = zext i1 %0 to i32 ; [#uses=1]
ret i32 %land.ext
}
------------------------------------------------------------
test:
.Leh_func_begin1:
pushq %rbp
.Ltmp0:
movq %rsp, %rbp
.Ltmp1:
testl %edi, %edi
jne .LBB1_2
xorb %al, %al
jmp .LBB1_3
.LBB1_2:
xorb %al, %al
callq f
testl %eax, %eax
setne %al
.LBB1_3:
movzbl %al, %eax
andl $1, %eax
popq %rbp
ret
------------------------------------------------------------
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 04:11:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 04:11:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7037] New: Incorrect FAQ on site
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7037
Summary: Incorrect FAQ on site
Product: new-bugs
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: b60995 at owlpic.com
CC: llvmbugs at cs.uiuc.edu
http://llvm.org/docs/FAQ.html#translatecxx
> % llvm-g++ x.cpp -o program
This wouldn't work with latest llmv-gcc.
It gets an error and doesn't generate program.bc.
This line should be changed to:
% llvm-g++ -emit-llvm -c x.cpp -o program.bc
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 04:59:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 04:59:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7038] New: ast-dump crash for inline-declared
structs in other structs
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7038
Summary: ast-dump crash for inline-declared structs in other
structs
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sebastian.redl at getdesigned.at
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following test program crashes -ast-dump mode:
struct foo {
struct bar *ptr;
};
The problem is that struct bar is not a member (for C compatibility, it lives
in the global context), but its lexical context is still struct foo. This means
that the AST printer will encounter it and try to print its access specifier.
But, not being a member, it has none, which hits an assertion.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 09:23:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 09:23:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7039] New: -print-multi-os-directory doesn't give
expected results.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7039
Summary: -print-multi-os-directory doesn't give expected
results.
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: kwm at FreeBSD.org
CC: llvmbugs at cs.uiuc.edu
# uname -m
amd64
# gcc45 -print-multi-os-directory
.
# clang -print-multi-os-directory
x86_64
# uname -m
i386
# gcc45 -print-multi-os-directory
.
# clang -print-multi-os-directory
.
Picked gcc 4.5 because its newer then our standard gcc 4.2.1. The result is the
same.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 10:28:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 10:28:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7040] New: Assertion on reduced boost testcase
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7040
Summary: Assertion on reduced boost testcase
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4819)
--> (http://llvm.org/bugs/attachment.cgi?id=4819)
Asserting testcase
The attached code is reduced from an 'error on valid code' problem in
libs/asio/example/serialization/client.cpp. The reduced is 'assert on valid
code', backtrace:
t.cc:11:5: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Assertion failed: (DefinitionData && "queried property of class with no
definition"), function data, file
/Users/caj/clang/llvm/tools/clang/lib/AST/../../include/clang/AST/DeclCXX.h,
line 317.
0 clang 0x00f542d5 PrintStackTrace(void*) + 45
1 clang 0x00f5481f SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 libSystem.B.dylib 0x91d558e5 raise + 26
5 libSystem.B.dylib 0x91d6b99c abort + 93
6 libSystem.B.dylib 0x91d58544 __pthread_markcancel + 0
7 clang 0x00502c1d clang::CXXRecordDecl::data() const + 73
8 clang 0x00296be9 clang::CXXRecordDecl::hasTrivialDestructor()
const + 17
9 clang 0x00231e62
hasNonTrivialDestructorOrCopyConstructor(clang::RecordType const*) + 60
10 clang 0x0023748e (anonymous
namespace)::X86_32ABIInfo::classifyArgumentType(clang::QualType,
clang::ASTContext&, llvm::LLVMContext&) const + 68
11 clang 0x00237ef5 (anonymous
namespace)::X86_32ABIInfo::computeInfo(clang::CodeGen::CGFunctionInfo&,
clang::ASTContext&, llvm::LLVMContext&) const + 195
12 clang 0x0016087c
clang::CodeGen::CodeGenTypes::getFunctionInfo(clang::CanQual,
llvm::SmallVectorImpl > const&,
clang::FunctionType::ExtInfo const&) + 484
13 clang 0x0016099e getFunctionInfo(clang::CodeGen::CodeGenTypes&,
llvm::SmallVectorImpl >&,
clang::CanQual) + 250
14 clang 0x00160fc7
clang::CodeGen::CodeGenTypes::getFunctionInfo(clang::CXXMethodDecl const*) +
117
15 clang 0x0018c907 (anonymous
namespace)::AggExprEmitter::VisitUnaryAddrOf(clang::UnaryOperator const*) + 631
16 clang 0x0018e31c clang::StmtVisitor<(anonymous
namespace)::AggExprEmitter, void>::Visit(clang::Stmt*) + 1090
17 clang 0x0018ede7
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*, llvm::Value*,
bool, bool, bool, bool) + 293
18 clang 0x00179aa9
clang::CodeGen::CodeGenFunction::EmitLocalBlockVarDecl(clang::VarDecl const&) +
5339
19 clang 0x0017a4be
clang::CodeGen::CodeGenFunction::EmitBlockVarDecl(clang::VarDecl const&) + 152
20 clang 0x0017a6f8
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 400
21 clang 0x001eac17
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 105
22 clang 0x001ec959
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 213
23 clang 0x001eacd0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 88
24 clang 0x001ec751
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, llvm::Value*, bool) + 253
25 clang 0x001ec93a
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 182
26 clang 0x001eacd0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 88
27 clang 0x0020dfe5
clang::CodeGen::CodeGenFunction::EmitFunctionBody(llvm::SmallVector, 16u>&) + 151
28 clang 0x0020f2ae
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1234
29 clang 0x002176b0
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl)
+ 708
30 clang 0x002181d4
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 298
31 clang 0x00218c06 clang::CodeGen::CodeGenModule::EmitDeferred() +
360
32 clang 0x00218e3c clang::CodeGen::CodeGenModule::Release() + 24
33 clang 0x002300a6 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) + 88
34 clang 0x000441d2 (anonymous
namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 100
35 clang 0x0023ede0 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 673
36 clang 0x0006333b clang::ASTFrontendAction::ExecuteAction() + 269
37 clang 0x00063458 clang::FrontendAction::Execute() + 278
38 clang 0x000472eb
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
39 clang 0x0002a13b cc1_main(char const**, char const**, char
const*, void*) + 1979
40 clang 0x0002e03b main + 272
41 clang 0x00028e79 start + 53
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name t.cc -pic-level 1
-mdisable-fp-elim -target-cpu yonah -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 133
-stack-protector 1 -fblocks -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-RdFfRN.s -x c++ t.cc
1. parser at end of file
2. Per-file LLVM IR generation
3. t.cc:6:9: Generating code for declaration 'connection::foo'
4. t.cc:7:5: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 10:29:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 10:29:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7041] New: Crash without assert on invalid code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7041
Summary: Crash without assert on invalid code
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4820)
--> (http://llvm.org/bugs/attachment.cgi?id=4820)
Crashing testcase
The attached test case crashes clang++. It came from reducing boost test cases,
but I am unsure if it would actually fix any boost problems.
/temp$ clang++ ~/Dropbox/crash_without_assert.cpp
/Users/caj/Dropbox/crash_without_assert.cpp:2:1: error: expected unqualified-id
}
^
/Users/caj/Dropbox/crash_without_assert.cpp:2:1: error: expected external
declaration
/Users/caj/Dropbox/crash_without_assert.cpp:9:7: error: field has incomplete
type 'mutex' (aka 'posix_mutex')
mutex mutex_
^
/Users/caj/Dropbox/crash_without_assert.cpp:1:8: note: forward declaration of
'posix_mutex'
struct posix_mutex
^
/Users/caj/Dropbox/crash_without_assert.cpp:9:13: error: expected ';' at end of
declaration list
mutex mutex_
^
;
/Users/caj/Dropbox/crash_without_assert.cpp:9:13: error: expected '}'
/Users/caj/Dropbox/crash_without_assert.cpp:5:1: note: to match this '{'
{
^
0 clang 0x00f542d5 PrintStackTrace(void*) + 45
1 clang 0x00f5481f SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 clang 0x003228a7
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&,
clang::ASTMultiPtr<&(clang::ActionBase::DeleteExpr(void*))>, clang::QualType*)
+ 101
5 clang 0x002b0522 BuildImplicitMemberInitializer(clang::Sema&,
clang::CXXConstructorDecl*, ImplicitInitializerKind, clang::FieldDecl*,
clang::CXXBaseOrMemberInitializer*&) + 430
6 clang 0x002bd09d
clang::Sema::SetBaseOrMemberInitializers(clang::CXXConstructorDecl*,
clang::CXXBaseOrMemberInitializer**, unsigned int, bool) + 1543
7 clang 0x002bd75c
clang::Sema::ActOnDefaultCtorInitializers(clang::OpaquePtr<0>) + 100
8 clang 0x005c83ea
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 1284
9 clang 0x005dd01a
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::OpaquePtr<0>) + 1534
10 clang 0x005de384
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4786
11 clang 0x005d1670
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 6508
12 clang 0x006103ab
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AttributeList*, clang::AccessSpecifier) + 85
13 clang 0x0061078c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*,
clang::AccessSpecifier) + 66
14 clang 0x00612504
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2222
15 clang 0x0061264a
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 268
16 clang 0x0023ece9 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 426
17 clang 0x0006333b clang::ASTFrontendAction::ExecuteAction() + 269
18 clang 0x00063458 clang::FrontendAction::Execute() + 278
19 clang 0x000472eb
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
20 clang 0x0002a13b cc1_main(char const**, char const**, char
const*, void*) + 1979
21 clang 0x0002e03b main + 272
22 clang 0x00028e79 start + 53
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name
crash_without_assert.cpp -pic-level 1 -mdisable-fp-elim -target-cpu yonah
-resource-dir /usr/local/lib/clang/2.0 -ferror-limit 19
-ftemplate-backtrace-limit 10 -fmessage-length 133 -stack-protector 1 -fblocks
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-j6zcE4.s -x c++
/Users/caj/Dropbox/crash_without_assert.cpp
1. /Users/caj/Dropbox/crash_without_assert.cpp:7:1: current parser token '{'
2. /Users/caj/Dropbox/crash_without_assert.cpp:4:1: parsing
struct/union/class body 'descriptor_state'
clang: error: compiler command failed due to signal 10 (use -v to see
invocation)
~/temp$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 10:30:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 10:30:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6962] A Concrete class inside a template class is
identified as abstract
In-Reply-To:
References:
Message-ID: <20100504153058.9B7E23128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6962
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2010-05-04 10:30:58 CDT ---
Yes, and I can confirm that it works correctly now.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 13:16:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 13:16:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7037] Incorrect FAQ on site
In-Reply-To:
References:
Message-ID: <20100504181606.D60963128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7037
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-05-04 13:16:06 CDT ---
Fixed in r103023, thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 13:21:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 13:21:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6621] Assertion in boost code
In-Reply-To:
References:
Message-ID: <20100504182154.1C6933128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6621
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-05-04 13:21:53 CDT ---
John fixed this a day or two ago.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 13:55:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 13:55:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2394] llvm-gcc generates wrong code for load from
bitfield in packed struct
In-Reply-To:
References:
Message-ID: <20100504185557.811F9312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2394
Stuart Hastings changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |stuart at apple.com
Resolution| |FIXED
--- Comment #5 from Stuart Hastings 2010-05-04 13:55:57 CDT ---
Fixed in r102979.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 14:08:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 14:08:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7043] New: Clang error handling crashes following
LLVM stream error (in teardown)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7043
Summary: Clang error handling crashes following LLVM stream
error (in teardown)
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu
I haven't found a way to reproduce this outside of Boost's build system, but
the issue here is that, if an error occurs during the destruction of the
standard output or standard error stream objects (raw_stderr_ostream,
raw_stdout_ostream), that error will be passed up to the Clang diagnostic
system... which has already been destroyed by this point. We should report
errors during teardown directly to standard error, ignoring the LLVM error
handler and without using llvm::errs(), whose destruction might cause the
problem.
Here's a stack trace I was able to capture when this problem occurred:
#0 0x00007fff855f0886 in __kill ()
#1 0x00007fff85690eae in abort ()
#2 0x00007fff805a35d2 in __gnu_cxx::__verbose_terminate_handler ()
#3 0x00007fff805a1ae1 in __cxxabiv1::__terminate ()
#4 0x00007fff805a1b16 in std::terminate ()
#5 0x00007fff805a1fd6 in __cxa_pure_virtual ()
#6 0x00000001001e1180 in llvm::raw_ostream::tell (this=0x10231a990) at
raw_ostream.h:88
#7 0x00000001001db99e in clang::TextDiagnosticPrinter::HandleDiagnostic
(this=0x104b08700, Level=Fatal, Info=@0x7fff5fbfed78) at
TextDiagnosticPrinter.cpp:713
#8 0x0000000100adb3e5 in clang::Diagnostic::ProcessDiag (this=0x104b08500) at
Diagnostic.cpp:579
#9 0x0000000100adb499 in clang::DiagnosticBuilder::Emit (this=0x7fff5fbfee30)
at Diagnostic.cpp:603
#10 0x0000000100050788 in clang::DiagnosticBuilder::~DiagnosticBuilder
(this=0x7fff5fbfee30) at Diagnostic.h:648
#11 0x0000000100049dd8 in clang::DiagnosticBuilder::~DiagnosticBuilder
(this=0x7fff5fbfee30) at Diagnostic.h:648
#12 0x00000001000479d2 in LLVMErrorHandler (UserData=0x104b08500,
Message=@0x7fff5fbfee90) at cc1_main.cpp:49
#13 0x00000001016ddc7d in llvm::report_fatal_error (reason=@0x7fff5fbfeec0) at
ErrorHandling.cpp:53
#14 0x00000001016ddbec in llvm::report_fatal_error (reason=0x1018c3410 "IO
failure on output stream.") at ErrorHandling.cpp:42
#15 0x0000000101700a85 in llvm::raw_ostream::~raw_ostream (this=0x10231a990) at
raw_ostream.cpp:64
#16 0x0000000101701565 in llvm::raw_fd_ostream::~raw_fd_ostream
(this=0x10231a990) at raw_ostream.cpp:417
#17 0x0000000101702947 in llvm::raw_stderr_ostream::~raw_stderr_ostream
(this=0x10231a990) at raw_ostream.h:394
#18 0x0000000101702740 in llvm::raw_stderr_ostream::~raw_stderr_ostream
(this=0x10231a990) at raw_ostream.h:394
#19 0x00007fff855b4c58 in __cxa_finalize ()
#20 0x00007fff855b4b70 in exit ()
#21 0x000000010003fe9b in start () at TimeValue.cpp:47
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 14:28:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 14:28:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7044] New: Assertion failed: (V && "DeclRefExpr not
entered in LocalDeclMap?"), function EmitDeclRefLValue, file CGExpr.cpp,
line 1139.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7044
Summary: Assertion failed: (V && "DeclRefExpr not entered in
LocalDeclMap?"), function EmitDeclRefLValue, file
CGExpr.cpp, line 1139.
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
pes delta$ cat label.c
typedef struct _dmenu_item {
}
dialogMenuItem;
typedef struct _part_info {
union {
struct {
}
newfs_custom;
}
newfs_data;
};
int diskLabelEditor(dialogMenuItem *self) {
int key = 0;
char *msg = ((void *)0);
switch (__sbtoupper(key)) {
static char _msg[40];
case '\014': clear_wins();
msg = _msg;
}
}
pes delta$ clang label.c
...warnings...
Assertion failed: (V && "DeclRefExpr not entered in LocalDeclMap?"), function
EmitDeclRefLValue, file CGExpr.cpp, line 1139.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name label.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -ftemplate-backtrace-limit 10 -fmessage-length 152
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-g3apn2.s
-x c label.c
1. parser at end of file
2. label.c:12:11: LLVM IR generation of declaration 'diskLabelEditor'
3. label.c:12:11: Generating code for declaration 'diskLabelEditor'
4. label.c:12:49: LLVM IR generation of compound statement ('{}')
5. label.c:15:31: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
pes delta$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 15:46:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 15:46:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7044] assert related to unreachable static local
variable.
In-Reply-To:
References:
Message-ID: <20100504204625.273243128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7044
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from John McCall 2010-05-04 15:46:24 CDT ---
Yep, this was my fault. Fixed in r103052.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 16:41:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 16:41:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7045] New: Analyzer should honor
__attribute__((const))
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7045
Summary: Analyzer should honor __attribute__((const))
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: boris.dusek at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4821)
--> (http://llvm.org/bugs/attachment.cgi?id=4821)
Minimal test case
Hi,
clang static analyzer should honor __attribute__((const)) - see the attached
test case.
tested with ANALYZER BUILD: checker-240 (2010-04-11 10:44:34)
Attaching a minimal test case. The real case (from which the test case is
derived) had "strcmp" as the "const" function. Since in string.h, strcmp is not
tagged as "const", this raises another and separate problem and that is tagging
all "const" functions accordingly (using the macro __pure2, like I have seen),
so that the proposed functionality becomes usable.
Attribute "pure" might also be worth looking at, but I am not sure it's OK to
do the same thing with it as I proposed with "const".
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 16:58:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 16:58:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7046] New: crash without assert in boost code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7046
Summary: crash without assert in boost code
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4822)
--> (http://llvm.org/bugs/attachment.cgi?id=4822)
crashing testcase
The attached test case, which is valid code (according to g++) crashes without
an assert.
/Users/caj/Dropbox/crash_without_assert.cpp:31:1: warning: control reaches end
of non-void function [-Wreturn-type]
}
^
/Users/caj/Dropbox/crash_without_assert.cpp:15:3: warning: control reaches end
of non-void function [-Wreturn-type]
}
^
/Users/caj/Dropbox/crash_without_assert.cpp:24:8: note: in instantiation of
member function 'hash_function<1>::op' requested here
m->op( 0 );
^
0 clang 0x00f542d5 PrintStackTrace(void*) + 45
1 clang 0x00f5481f SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 clang 0x0055c851 clang::CallExpr::getCallReturnType() const +
147
5 clang 0x001a160b (anonymous
namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) + 23
6 clang 0x001a722d clang::StmtVisitor<(anonymous
namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) + 2747
7 clang 0x001a77ba
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 142
8 clang 0x00185cec
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, llvm::Value*,
bool, bool, bool) + 76
9 clang 0x001eae60
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 488
10 clang 0x001ec751
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, llvm::Value*, bool) + 253
11 clang 0x001ec93a
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 182
12 clang 0x001eacd0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 88
13 clang 0x0020dfe5
clang::CodeGen::CodeGenFunction::EmitFunctionBody(llvm::SmallVector, 16u>&) + 151
14 clang 0x0020f2ae
clang::CodeGen::CodeGenFunction::GenerateCode(clang::CodeGen::GlobalDecl,
llvm::Function*) + 1234
15 clang 0x002176b0
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::CodeGen::GlobalDecl)
+ 708
16 clang 0x002181d4
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::CodeGen::GlobalDecl)
+ 298
17 clang 0x00218c06 clang::CodeGen::CodeGenModule::EmitDeferred() +
360
18 clang 0x00218e3c clang::CodeGen::CodeGenModule::Release() + 24
19 clang 0x002300a6 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&) + 88
20 clang 0x000441d2 (anonymous
namespace)::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 100
21 clang 0x0023ede0 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 673
22 clang 0x0006333b clang::ASTFrontendAction::ExecuteAction() + 269
23 clang 0x00063458 clang::FrontendAction::Execute() + 278
24 clang 0x000472eb
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
25 clang 0x0002a13b cc1_main(char const**, char const**, char
const*, void*) + 1979
26 clang 0x0002e03b main + 272
27 clang 0x00028e79 start + 53
28 clang 0x00000020 start + 4294799836
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name
crash_without_assert.cpp -pic-level 1 -mdisable-fp-elim -target-cpu yonah
-resource-dir /usr/local/lib/clang/2.0 -ferror-limit 19
-ftemplate-backtrace-limit 10 -fmessage-length 80 -stack-protector 1 -fblocks
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-eEB284.s -x c++
/Users/caj/Dropbox/crash_without_assert.cpp
1. parser at end of file
2. Per-file LLVM IR generation
3. /Users/caj/Dropbox/crash_without_assert.cpp:12:7: Generating code for
declaration 'hash_function<1>::op'
4. /Users/caj/Dropbox/crash_without_assert.cpp:13:3: LLVM IR generation of
compound statement ('{}')
clang: error: compiler command failed due to signal 10 (use -v to see
invocation)
~$
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 17:19:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 17:19:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7047] New: Nuisance "self-comparison" Warning from
Template code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7047
Summary: Nuisance "self-comparison" Warning from Template code
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: me22.ca at gmail.com
CC: llvmbugs at cs.uiuc.edu
With this code
template B)>
struct base {};
template
struct other : base {};
template
struct other : base {};
I get the following warnings
$ clang++ clang.cc -Wall -Wextra -fsyntax-only
clang.cc:2:36: warning: self-comparison always results in a constant value
template B)>
^
clang.cc:9:21: note: in instantiation of default argument for 'base'
required here
struct other : base {};
^~~~~~~~~
clang.cc:2:52: warning: self-comparison always results in a constant value
template B)>
^
3 diagnostics generated.
which are just a nuisance in this case. g++ does not give a warning for this
code.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 17:32:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 17:32:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7048] New: ARM JIT for armv7 does not emit an immed
correctly if its spread of "1"s is greater than 8
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7048
Summary: ARM JIT for armv7 does not emit an immed correctly if
its spread of "1"s is greater than 8
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sliao at google.com
CC: llvmbugs at cs.uiuc.edu
Nick asked to file armv7 bugs/patches upstream. Here you go:
A simple test case (foo.c) is as follows:
int main() {
printf("%d\n", 1001);
return 0;
}
After you generate foo.bc, jitting it on an ARMv7 will result in:
assertion "SoImmVal != -1 && "Not a valid so_imm value!"" failed: file
"lib/Target/ARM/ARMCodeEmitter.cpp"
Stack dump:
0. Running pass 'ARM Machine Code Emitter' on function '@main'
[1] Segmentation fault
This bug is in a way similar to my bug
http://llvm.org/bugs/show_bug.cgi?id=6265. Fundamentally, the code emission for
ARMv7's movt and movw in LLVM is not finished. I have a 29-line patch for this
bug on lib/Target/ARM/ARMCodeEmitter.cpp. Someone told me that I shouldn't fix
it in lib/Target/ARM/ARMCodeEmitter.cpp, but should fix it in the ".td" file. I
agree that let's see what the community wants, before submitting patches for
armv7 bugs.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Tue May 4 17:51:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 4 May 2010 17:51:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7049] New: ARM JIT for armv7 doesn't output several
VFP instructions correctly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7049
Summary: ARM JIT for armv7 doesn't output several VFP
instructions correctly
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sliao at google.com
CC: llvmbugs at cs.uiuc.edu
I narrowed down to th fact that LLVM's ARM JIT will generate correct code if
the value of a float immed is greater than 32. Otherwise, LLVM's ARM JIT will
generate incorrect code.
A small test code is as follows. On ARM JIT, the result should be:
x = 100.000000
x = 114.000000
But on my armv7 device, it outputs:
x = 100.000000
x = 102.000000
---------- Beginning test code ----------
#define PULSE_SIZE 14
#define TRAIL_SIZE 40
struct pulse_s {
float originX;
float originY;
};
int main() {
struct pulse_s pulseSet[1];
int i = 0;
float x;
for (i = 0; i < 1; i++) {
pulseSet[i].originX = (float) 100;
pulseSet[i].originY = (float) i;
}
x = pulseSet[0].originX;
printf("x = %f\n", x);
x += PULSE_SIZE;
printf("x = %f\n", x);
return 0;
}
---------- End of Code --------------
If PULSE_SIZE < 32.0f, LLVM JIT generates:
vmov.f32 s0, #0
vadd.f32 s0, s16, s0 (s16 is x),
which is incorrect.
Otherwise, it will generate:
vldr.32 s0, [pc, #32]
vadd.f32 s0, s16, s0,
which is correct.
This is because the Instruction Selection in LLVM is doing the right thing that
vmov can take immed values that's less than 32. But the code emission is not
implemented. This code is worse than the bug in
http://llvm.org/bugs/show_bug.cgi?id=7048. At least in Bug #7048, the
unimplemented paths are guarded by assertion failures. For this bug, the
emitMiscInstruction() just didn't check. As a result, it took a while for
narrowing down/fixing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 00:51:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 00:51:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5989] Clang crashes on copy constructor combination
with default arguments
In-Reply-To:
References:
Message-ID: <20100505055157.613623128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5989
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Douglas Gregor 2010-05-05 00:51:56 CDT ---
Fixed in r103079.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 00:52:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 00:52:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6887] assertion failed: Default argument is not yet
instantiated!
In-Reply-To:
References:
Message-ID: <20100505055242.80B0A3128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6887
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dgregor at apple.com
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2010-05-05 00:52:42 CDT ---
Fixed in r103079.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 00:53:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 00:53:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6928] Assertion with implicitly-generated copy
constructor call with default arguments
In-Reply-To:
References:
Message-ID: <20100505055316.E19263128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6928
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-05-05 00:53:16 CDT ---
Fixed in r103079.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 01:00:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 01:00:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7030] C++ 'template' kw as disambiguator not
supported
In-Reply-To:
References:
Message-ID: <20100505060049.E34333128034@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7030
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Douglas Gregor 2010-05-05 01:00:49 CDT ---
Applied Alp's latest patch in r103081. Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 04:11:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 04:11:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7050] New: Global variable initialisation issue
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7050
Summary: Global variable initialisation issue
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4826)
--> (http://llvm.org/bugs/attachment.cgi?id=4826)
Singleton test case
The following testcase is reduced from boost::serialization. It asserts at
runtime in clang. It appears to be fixed if lines 'assert(!
detail::singleton_wrapper::m_is_destroyed);' and 'use(instance);' are
swapped around (lines 34 and 35).
This bug is very sensitive. On apple you need to add '-m64 -O' to trigger it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 07:06:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 07:06:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7051] New: assert 'C++ binary operator overloading
is missing candidates!'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7051
Summary: assert 'C++ binary operator overloading is missing
candidates!'
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4827)
--> (http://llvm.org/bugs/attachment.cgi?id=4827)
Asserting test case derived from boost
This is reduced from the boost file
'./libs/test/example/unit_test_example_12.cpp'. (the original did not produce
this assert, it just crashed).
Assertion failed: (Result.isInvalid() && "C++ binary operator overloading is
missing candidates!"), function CreateOverloadedBinOp, file SemaOverload.cpp,
line 6210.
0 clang 0x00f57119 PrintStackTrace(void*) + 45
1 clang 0x00f57663 SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 libSystem.B.dylib 0x91d558e5 raise + 26
5 libSystem.B.dylib 0x91d6b99c abort + 93
6 libSystem.B.dylib 0x91d58544 __pthread_markcancel + 0
7 clang 0x0035a04f
clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int,
clang::UnresolvedSetImpl const&, clang::Expr*, clang::Expr*) + 5001
8 clang 0x002f3901 clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperator::Opcode, clang::Expr*,
clang::Expr*) + 295
9 clang 0x002f3aa9 clang::Sema::ActOnBinOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>,
clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>) + 263
10 clang 0x005ebd6d
clang::Parser::ParseRHSOfBinaryExpression(clang::ASTOwningResult<&(clang::ActionBase::DeleteExpr(void*))>,
clang::prec::Level) + 2501
11 clang 0x005e4326 clang::Parser::ParseAssignmentExpression() +
444
12 clang 0x005e4763 clang::Parser::ParseExpression() + 25
13 clang 0x006050c3
clang::Parser::ParseStatementOrDeclaration(bool) + 1679
14 clang 0x006097cb clang::Parser::ParseCompoundStatementBody(bool)
+ 215
15 clang 0x00609e2f
clang::Parser::ParseFunctionStatementBody(clang::OpaquePtr<0>) + 199
16 clang 0x005ca01e
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 1304
17 clang 0x005ca185
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 1663
18 clang 0x005dec3a
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::OpaquePtr<0>) + 1534
19 clang 0x005dffa4
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4786
20 clang 0x005d3290
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 6508
21 clang 0x0060d877
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::SourceLocation&,
clang::AccessSpecifier) + 341
22 clang 0x0060e0f9
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 985
23 clang 0x0060e1e0
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 178
24 clang 0x005d74dc clang::Parser::ParseDeclaration(unsigned int,
clang::SourceLocation&, clang::CXX0XAttributeList) + 330
25 clang 0x006141bf
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 1993
26 clang 0x006143ea
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 268
27 clang 0x0023f3f1 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 426
28 clang 0x0006367f clang::ASTFrontendAction::ExecuteAction() + 269
29 clang 0x0006379c clang::FrontendAction::Execute() + 278
30 clang 0x00047427
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
31 clang 0x0002a11f cc1_main(char const**, char const**, char
const*, void*) + 1979
32 clang 0x0002e039 main + 272
33 clang 0x00028e5d start + 53
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name operator_missing.cc
-pic-level 1 -mdisable-fp-elim -target-cpu yonah -resource-dir
/usr/local/lib/clang/2.0 -ferror-limit 19 -fmacro-backtrace-limit 6
-ftemplate-backtrace-limit 10 -fmessage-length 131 -stack-protector 1 -fblocks
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-qKj9hz.s -x c++
operator_missing.cc
1. operator_missing.cc:13:16: current parser token ';'
2. operator_missing.cc:6:1: parsing struct/union/class body 'basic_istream'
3. operator_missing.cc:11:5: parsing function body
'basic_istream::sentry::sentry'
4. operator_missing.cc:11:5: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 10:06:39 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 10:06:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7052] New: Global Value Numbering assertion
failure: "bitwidth too small"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7052
Summary: Global Value Numbering assertion failure: "bitwidth
too small"
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: matti.niemenmaa+llvmbugs at iki.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4829)
--> (http://llvm.org/bugs/attachment.cgi?id=4829)
test case
The Global Value Numbering pass asserts on the attached bitcode file, using
LLVM r103084:
$ opt -gvn bugpoint-reduced-simplified.bc >/dev/null
opt: src/llvm/trunk/lib/VMCore/Type.cpp:806: static const llvm::IntegerType*
llvm::IntegerType::get(llvm::LLVMContext&, unsigned int): Assertion `NumBits >=
MIN_INT_BITS && "bitwidth too small"' failed.
Stack dump:
0. Program arguments: bin/opt -gvn
1. Running pass 'Function Pass Manager' on module ''.
2. Running pass 'Global Value Numbering' on function '@main'
In 2.7 it does one better and segfaults:
$ opt -gvn bugpoint-reduced-simplified.bc >/dev/null
0 opt 0x000000000088102f
1 opt 0x000000000088156d
2 libpthread.so.0 0x00007fe59349af20
3 opt 0x00000000004fe79f
4 opt 0x0000000000503180
5 opt 0x0000000000503918
6 opt 0x000000000080e366
llvm::FPPassManager::runOnFunction(llvm::Function&) + 502
7 opt 0x000000000080e43b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
8 opt 0x000000000080dfd1
llvm::MPPassManager::runOnModule(llvm::Module&) + 369
9 opt 0x000000000080e10f llvm::PassManagerImpl::run(llvm::Module&)
+ 111
10 opt 0x00000000004a4653 main + 2003
11 libc.so.6 0x00007fe5927a7b1d __libc_start_main + 253
12 opt 0x0000000000499d99
Stack dump:
0. Program arguments: opt -gvn foo.bc
1. Running pass 'Function Pass Manager' on module 'foo.bc'.
2. Running pass 'Global Value Numbering' on function '@main'
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 11:06:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 11:06:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7053] New: clang++ accepts invalid template code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7053
Summary: clang++ accepts invalid template code
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
clang++ accepts and compiles the following invalid code:
template< int ;
int main()
{
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 11:07:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 11:07:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7054] New: Assertion `Symbol->isUndefined() &&
"Cannot define a symbol twice!"' failed.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7054
Summary: Assertion `Symbol->isUndefined() && "Cannot define a
symbol twice!"' failed.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hv at crypt.org
CC: llvmbugs at cs.uiuc.edu, hv at crypt.org
Created an attachment (id=4830)
--> (http://llvm.org/bugs/attachment.cgi?id=4830)
Example C code
Attached code was cut down from an attempt to compile (latest) perl, at the
point it first tried to #include .
zen% /opt/clang-latest/bin/clang --version
clang version 2.0 (trunk 102861)
Target: i386-pc-linux-gnu
Thread model: posix
zen% /opt/clang-latest/bin/clang -c clangtest.c
clang: MCAsmStreamer.cpp:220: virtual
void::MCAsmStreamer::EmitLabel(llvm::MCSymbol*): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.
0 clang 0x08fbafe3
1 clang 0x08fbaea7
2 0xb7f34420 __kernel_sigreturn + 0
3 libc.so.6 0x0044b4b1 abort + 257
4 libc.so.6 0x004431db __assert_fail + 251
5 clang 0x08e67ce3
6 clang 0x08b0ef6c
7 clang 0x08b0ec34
8 clang 0x08950dd5
9 clang 0x08b8be3f
10 clang 0x08f2c3a0
11 clang 0x08f2c0c9
12 clang 0x08f2bd2f
13 clang 0x0808011c
14 clang 0x0807eee4
15 clang 0x082de2ba
16 clang 0x08099c39
17 clang 0x08099834
18 clang 0x08085491
19 clang 0x0806d915
20 clang 0x08072693 main + 202
21 libc.so.6 0x00436dec __libc_start_main + 220
22 clang 0x0806c231
Stack dump:
0. Program arguments: /opt/clang-latest/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name clangtest.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu
pentium4 -resource-dir /opt/clang-latest/lib/clang/2.0 -ferror-limit 19
-ftemplate-backtrace-limit 10 -fmessage-length 80 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-meTmGU.s -x c
clangtest.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 AT&T-Style Assembly Printer' on function '@stat64'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
zen%
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 11:14:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 11:14:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7055] New: Constructor is not used for type
conversion.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7055
Summary: Constructor is not used for type conversion.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: syntheticpp at gmx.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Next Loki bug:
./../include/loki/Functor.h:1619:16: error: functional-style cast from
'std::auto_ptr' to 'Outgoing' (aka 'Functor') is not allowed
return Outgoing(std::auto_ptr(
^~~~~~~~~
In file included from Test.cpp:58:
./FunctorTest.h:60:44: note: in instantiation of function template
specialization 'Loki::BindFirst, ::Loki::SingleThreaded> >' requested here
Functor bindFunctor(BindFirst(function,testResult));
^
In file included from Test.cpp:55:
Comment:
But Functor has a constructor which takes a std::auto_ptr:
typedef FunctorImpl Impl;
...
Functor(std::auto_ptr spImpl) : spImpl_(spImpl)
{}
If Alp isn't faster I try to make a reduced test case
Reproduce:
svn co https://loki-lib.svn.sourceforge.net/svnroot/loki-lib
cd trunk
export CXX=clang++
make
.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 12:05:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 12:05:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7056] New: Confusion by friend declaration of
global template function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7056
Summary: Confusion by friend declaration of global template
function
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: syntheticpp at gmx.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Found with Loki.
Disable definition in /include/loki/SmartPtr.h line 54:
//#define LOKI_ENABLE_FRIEND_TEMPLATE_TEMPLATE_PARAMETER_WORKAROUND
Build test/SmartPtr/main.cpp
main.cpp:1326:5: error: call to 'Release' is ambiguous
Release( w1, pNull );
^~~~~~~
In file included from main.cpp:18:
../../include/loki/SmartPtr.h:1386:21: note: candidate function
[with $0 = BaseClass, OP1 = RefCounted, $2 = Loki::DisallowConversion,
KP1 = AssertCheck, SP1 = DefaultSPStorage, CNP1 = DontPropagateConst]
friend void Release(SmartPtr& sp,
^
../../include/loki/SmartPtr.h:1586:17: note: candidate function [with T =
BaseClass, OP = RefCounted, CP = Loki::DisallowConversion, KP = AssertCheck, SP
= DefaultSPStorage, CNP = DontPropagateConst]
inline void Release(SmartPtr& sp,
^
The first declaration is only a friend declaration.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 12:17:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 12:17:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7057] New: Too early resolving of template
argument's member functions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7057
Summary: Too early resolving of template argument's member
functions
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: syntheticpp at gmx.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Found with Loki.
Disable definition in /include/loki/SmartPtr.h line 54:
//#define LOKI_ENABLE_FRIEND_TEMPLATE_TEMPLATE_PARAMETER_WORKAROUND
Call 'make -k" in test/SmartPtr.
clang++ output:
In file included from LockTest.cpp:38:
../../include/loki/StrongPtr.h:1495:15: error: 'T' does not refer to a value
if ( !sp.RP::OnReleaseAll( sp.IsStrong() || sp.OP::HasStrongPointer() ) )
^
../../include/loki/StrongPtr.h:1483:14: note: declared here
typename T,
^
clang++ tries to find 'sp.RP::OnReleaseAll' which does not work without
an concrete type T. Should the resolving of T's member functions not be done at
instantiation time?
Or there are problems with parsing 'foo.ABC::XYZ'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 14:35:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 14:35:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7058] New: non-virtual thunk functions can mangle
objects passed by value
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7058
Summary: non-virtual thunk functions can mangle objects passed
by value
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dimitry at andric.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4831)
--> (http://llvm.org/bugs/attachment.cgi?id=4831)
Testcase showing a non-virtual thunk mangling an object passed by value
While trying out clang self-hosting on FreeBSD/i386, I encountered a number of
segfaults. Apparently this was only the case for i386, since a number of
people
have successfully self-hosted clang on amd64.
Then, when I built an instance of the llvm/clang trunk (r103083) using the
system gcc (v4.2.1), and used that instance to build llvm/clang itself, many
tests in the llvm and clang test suite failed with segfaults too.
I concentrated on one of the particular tests that failed with a segfault:
./Debug/bin/opt -gvn foo
I found that one of the CallSite objects passed by value was screwed up. This
happens in one of the llvm::AliasAnalysis::getModRefInfo instances:
include/llvm/Analysis/AliasAnalysis.h, around line 258:
virtual ModRefResult getModRefInfo(CallSite CS, Value *P, unsigned Size);
// [0]
...
ModRefResult getModRefInfo(CallInst *C, Value *P, unsigned Size) {
// [1]
return getModRefInfo(CallSite(C), P, Size);
// [2]
}
which gets called by:
ModRefResult getModRefInfo(Instruction *I, Value *P, unsigned Size) {
// [3]
switch (I->getOpcode()) {
case Instruction::VAArg: return getModRefInfo((VAArgInst*)I, P, Size);
case Instruction::Load: return getModRefInfo((LoadInst*)I, P, Size);
case Instruction::Store: return getModRefInfo((StoreInst*)I, P, Size);
case Instruction::Call: return getModRefInfo((CallInst*)I, P, Size);
// [4]
case Instruction::Invoke: return getModRefInfo((InvokeInst*)I, P, Size);
default: return NoModRef;
}
}
which gets called by MemoryDependenceAnalysis::getPointerDependencyFrom:
MemDepResult MemoryDependenceAnalysis::
getPointerDependencyFrom(Value *MemPtr, uint64_t MemSize, bool isLoad,
BasicBlock::iterator ScanIt, BasicBlock *BB) {
...
// See if this instruction (e.g. a call or vaarg) mod/ref's the pointer.
switch (AA->getModRefInfo(Inst, MemPtr, MemSize)) {
Now when AA->getModRefInfo is called, Inst apparently points to an Instruction
object that has an Instruction:Call opcode, so the getModRefInfo function at
[3]
casts it to a CallInst pointer at [4], and calls the specialized getModRefInfo
at [1].
So far so good, however, at [2] four different things happen:
1. A temp object CallSite(C) is constructed.
2. It is passed by value (e.g. copied) to the 'virtual' getModRefInfo member
function at [0].
3. The getModRefInfo member at [0] is *not* directly called, but a non-virtual
thunk is used, since the AA variable points to a BasicAliasAnalysis object,
which inherits from multiple classes.
4. The thunk function calls the intended getModRefInfo at [0].
Now, in that step 4, the thunk function screws something up with the CallInst
object. The non-virtual thunk is visible in the backtrace in gdb (the
top-level
assert is triggered because I added on to getInstruction, to check for bogus
pointers.):
#0 0x28cd1927 in kill () from /lib/libc.so.7
#1 0x28cd1886 in raise () from /lib/libc.so.7
#2 0x28cd041a in abort () from /lib/libc.so.7
#3 0x28cb8826 in __assert () from /lib/libc.so.7
#4 0x083e4c37 in llvm::CallSiteBase::getInstruction (this=0xbfbfda68) at CallSite.h:87
#5 0x086f1a17 in (anonymous namespace)::BasicAliasAnalysis::getModRefInfo
(this=0x29104080, P=0x2900948c, Size=4294967295, CS={ = {I
= {Value = 4393129}}, }) at AnalysisWrappers.cpp:166
#6 0x086f2423 in non-virtual thunk to (anonymous
namespace)::BasicAliasAnalysis::getModRefInfo(llvm::CallSite, llvm::Value*,
unsigned int) () at AnalysisWrappers.cpp:166
#7 0x0856d192 in llvm::AliasAnalysis::getModRefInfo (this=0x29104090,
C=0x290094cc, P=0x2900948c, Size=4294967295) at AnalysisWrappers.cpp:166
#8 0x086538ee in llvm::AliasAnalysis::getModRefInfo (this=0x29104090,
I=0x290094cc, P=0x2900948c, Size=4294967295) at AnalysisWrappers.cpp:166
#9 0x0874ccf9 in llvm::MemoryDependenceAnalysis::getPointerDependencyFrom
(this=0x29102080, MemPtr=0x2900948c, MemSize=4294967295, isLoad=true,
BB=0x2900c370, ScanIt={ = {}, NodePtr =
0x290094cc}) at AnalysisWrappers.cpp:166
At #5, you can see the CallSite object, which is represented by CS={}, and the
Value turns out to be 4393129 (0x4308a9). However, this Value is supposed to
be
a pointer, and this value is way too low.
When you go up in the stack to #6, and examine the Value, it turns out to be
0x290094ce instead. In the non-virtual thunk function, it looks like the code
generator inserts an unwanted redirection at [5]:
.align 16, 0x90
.type
_ZThn16_N12_GLOBAL__N_118BasicAliasAnalysis13getModRefInfoEN4llvm8CallSiteEPNS1_5ValueEj, at function
_ZThn16_N12_GLOBAL__N_118BasicAliasAnalysis13getModRefInfoEN4llvm8CallSiteEPNS1_5ValueEj:
.Leh_func_begin51:
pushl %ebp
.Ltmp425:
movl %esp, %ebp
.Ltmp426:
pushl %ebx
pushl %edi
pushl %esi
subl $36, %esp
.Ltmp427:
call .L51$pb
.L51$pb:
popl %eax
.Ltmp428:
addl $_GLOBAL_OFFSET_TABLE_+(.Ltmp428-.L51$pb), %eax
movl 8(%ebp), %ecx
movl 12(%ebp), %edx
movl 16(%ebp), %esi
movl 20(%ebp), %edi
movl %ecx, -20(%ebp)
movl %esi, -24(%ebp)
movl %edi, -28(%ebp)
movl -20(%ebp), %ecx
addl $-16, %ecx
leal -32(%ebp), %esi
movl (%edx), %edx // [5]
movl %edx, (%esi)
movl -24(%ebp), %edx
movl -28(%ebp), %esi
movl %esp, %edi
movl %ecx, (%edi)
movl -32(%ebp), %ecx
movl %ecx, 4(%edi)
movl %edx, 8(%edi)
movl %esi, 12(%edi)
movl %eax, %ebx
call
_ZN12_GLOBAL__N_118BasicAliasAnalysis13getModRefInfoEN4llvm8CallSiteEPNS1_5ValueEj
movl %eax, -16(%ebp)
movl -16(%ebp), %eax
addl $36, %esp
popl %esi
popl %edi
popl %ebx
popl %ebp
ret
.Ltmp429:
.size
_ZThn16_N12_GLOBAL__N_118BasicAliasAnalysis13getModRefInfoEN4llvm8CallSiteEPNS1_5ValueEj,
.Ltmp429-_ZThn16_N12_GLOBAL__N_118BasicAliasAnalysis13getModRefInfoEN4llvm8CallSiteEPNS1_5ValueEj
.Leh_func_end51:
If I tell gdb to break at [5], and jump to the next instruction, e.g. without
performing the indirection, the program completes successfully, and produces
the
expected output file.
The non-virtual thunk to BasicAliasAnalysis::getModRefInfo is generated by
compiling lib/Analysis/BasicAliasAnalysis.cpp, so I have attempted to reduce
this file to a testcase that is as small as possible. It is attached as
'thunkbug.cpp'.
To reproduce the crash, simply compile the testcase with clang++ and run it, on
either FreeBSD or Linux on i386. It should crash both with and without
optimization.
The same code compiles and runs fine with g++, and also with clang on amd64 (I
only tested that on FreeBSD, but I bet it will apply to Linux amd64 too.)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 15:17:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 15:17:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7050] Global variable initialisation issue
In-Reply-To:
References:
Message-ID: <20100505201732.5AFA93128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7050
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2010-05-05 15:17:32 CDT ---
Well, that was "fun". Fixed in r103115.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 15:20:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 15:20:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7057] Too early resolving of template argument's
member functions
In-Reply-To:
References:
Message-ID: <20100505202054.E82DC3128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7057
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2010-05-05 15:20:54 CDT ---
This is a bug in Loki. For "RP" to be parsed as a template-name when "sp" is a
type-dependent expression, it needs the template keyword, e.g.,
sp.template RP
otherwise, RP gets parsed as a member and '<' as a less-than operator.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 16:00:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 16:00:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7059] New: Exception std::bad_cast thrown by
dynamic_cast is not caught correctly.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7059
Summary: Exception std::bad_cast thrown by dynamic_cast is not
caught correctly.
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pasi.parviainen at iki.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4832)
--> (http://llvm.org/bugs/attachment.cgi?id=4832)
Failing example.
Exception std::bad_cast thrown by dynamic_cast is not caught correctly on same
level where the throw did occur. Attached failing example code demonstrates the
problem.
Output of the example program compiled as "clang++ badcast.cpp":
DoDynamicCast(a); => std::bad_cast caught incorrectly.
Expected outcome:
DoDynamicCast(a); => std::bad_cast caught correctly.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 16:50:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 16:50:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7060] New: -print-before-all/-print-after-all
segfault on OSX
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7060
Summary: -print-before-all/-print-after-all segfault on OSX
Product: tools
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: llc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: grosbach at apple.com
CC: llvmbugs at cs.uiuc.edu
$ cat t.ll
define i32 @f1(i32 %a, i32 %b) {
entry:
%tmp1 = sdiv i32 %a, %b ; [#uses=1]
ret i32 %tmp1
}
$ llc -print-before-all t.ll
Segmentation fault
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 16:52:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 16:52:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7060] -print-before-all/-print-after-all segfault
on OSX
In-Reply-To:
References:
Message-ID: <20100505215221.55E363128034@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7060
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-05-05 16:52:21 CDT ---
*** This bug has been marked as a duplicate of bug 6875 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 16:54:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 16:54:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7061] New: Website: CMake files also work with Linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7061
Summary: Website: CMake files also work with Linux
Product: Build scripts
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
AssignedTo: unassignedbugs at nondot.org
ReportedBy: syntheticpp at gmx.net
CC: llvmbugs at cs.uiuc.edu
CMake files also work under Linux, but it is not mentioned at the web site
'Getting Started'.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 17:08:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 17:08:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2809] Avoid execution domain bypass
In-Reply-To:
References:
Message-ID: <20100505220821.92A373128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2809
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Jakob Stoklund Olesen 2010-05-05 17:08:20 CDT ---
Fixed by the SSEDomainFixPass
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 17:19:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 17:19:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7062] New: [C++ CodeGen] Destruction of
partial-constructed member arrays in implicitly-defined constructors
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7062
Summary: [C++ CodeGen] Destruction of partial-constructed
member arrays in implicitly-defined constructors
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4833)
--> (http://llvm.org/bugs/attachment.cgi?id=4833)
Failing test case
When an exception occurs while constructing an element in a non-static array
member, we need to destroy all of the elements constructed before the exception
occurred. The attached tested case (copy-constructor-synthesis-3.cpp) is a
simple run-time test that checks for this behavior, which we currently fail.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 17:38:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 17:38:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6999] [C++ CodeGen] Reimplement synthesis of
implicit copy assignment operators
In-Reply-To:
References:
Message-ID: <20100505223830.9F8B13128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6999
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Douglas Gregor 2010-05-05 17:38:30 CDT ---
This work is done as of r103127.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 17:56:04 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 17:56:04 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7058] non-virtual thunk functions can mangle
objects passed by value
In-Reply-To:
References:
Message-ID: <20100505225604.F25283128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7058
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Chris Lattner 2010-05-05 17:56:04 CDT ---
Fixed here, thanks for the great report!
http://llvm.org/viewvc/llvm-project?rev=103131&view=rev
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 18:11:20 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 18:11:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6520] [inline asm] early clobber + forced register
+ -O0 == wrong register allocation
In-Reply-To:
References:
Message-ID: <20100505231120.A0D633128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6520
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-05-05 18:11:20 CDT ---
Fixed in r103133
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 18:40:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 18:40:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 1642] SjLj (setjmp/longjmp)-based exception
handling in LLVM-GCC seems to be unsupported
In-Reply-To:
References:
Message-ID: <20100505234056.148113128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=1642
Jim Grosbach changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |grosbach at apple.com
Resolution| |FIXED
--- Comment #5 from Jim Grosbach 2010-05-05 18:40:55 CDT ---
llvm has had sjlj EH for ARM for a while now. Closing.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 18:46:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 18:46:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5717] thumb2 mode doesn't distinguish the v7-M
variant
In-Reply-To:
References:
Message-ID: <20100505234614.088EC3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5717
Jim Grosbach changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jim Grosbach 2010-05-05 18:46:13 CDT ---
Fixed in Fixed in r103119, r103120, r103122 and r103136.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Wed May 5 19:05:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 5 May 2010 19:05:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7054] Assertion `Symbol->isUndefined() && "Cannot
define a symbol twice!"' failed.
In-Reply-To:
References:
Message-ID: <20100506000549.19CD33128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7054
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-05-05 19:05:48 CDT ---
Fixed in r103140
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 01:08:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 01:08:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7063] New: Assertation failure, class copying
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7063
Summary: Assertation failure, class copying
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: scoopr at iki.fi
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Attached test-case fails.
Needed -arch i386 flag for triggering it.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 01:35:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 01:35:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7063] Assertation failure, class copying
In-Reply-To:
References:
Message-ID: <20100506063537.B5B5E3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7063
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-05-06 01:35:37 CDT ---
Fixed in r103171, thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 01:51:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 01:51:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7064] New: Crash with synthesized ivar of
incomplete struct type
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7064
Summary: Crash with synthesized ivar of incomplete struct type
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: kyle at omnigroup.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4837)
--> (http://llvm.org/bugs/attachment.cgi?id=4837)
st.m
I am able to crash clang with this simple file and the following command line:
$ clang -ObjC -framework Foundation -o st st.m
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 02:26:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 02:26:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7065] New: Inconsistent treatment of using
declarations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7065
Summary: Inconsistent treatment of using declarations
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
In the following code, clang complains about g, but not about f. Comeau and g++
are both happy with all of it.
namespace X
{
int f();
int g();
}
using X::f;
using X::f;
void h()
{
using X::g;
using X::g;
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 02:31:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 02:31:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7066] New: local register allocator fails on inline
asm
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7066
Summary: local register allocator fails on inline asm
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nicholas at mxc.ca
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4838)
--> (http://llvm.org/bugs/attachment.cgi?id=4838)
testcase .ll
$ llc -regalloc=local c.ll
llc: RegAllocLocal.cpp:348:
void::RALocal::spillPhysReg(llvm::MachineBasicBlock&,
llvm::MachineInstr*, unsigned int, bool): Assertion `PhysRegsUsed[PhysReg] !=
-2 && "Non allocable reg used!"' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff6ef6095 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x00007ffff6ef6095 in raise () from /lib/libc.so.6
#1 0x00007ffff6ef7af0 in abort () from /lib/libc.so.6
#2 0x00007ffff6eef2df in __assert_fail () from /lib/libc.so.6
#3 0x0000000000edf818 in spillPhysReg (this=0x18aca20, MBB=..., I=0x18c7308,
PhysReg=116, OnlyVirtRegs=true) at RegAllocLocal.cpp:348
#4 0x0000000000ee0797 in AllocateBasicBlock (this=0x18aca20, MBB=...)
at RegAllocLocal.cpp:852
#5 0x0000000000ee223b in runOnMachineFunction (this=0x18aca20, Fn=...)
at RegAllocLocal.cpp:1208
#6 0x0000000000e91a71 in llvm::MachineFunctionPass::runOnFunction (
this=0x18aca20, F=...) at MachineFunctionPass.cpp:33
#7 0x000000000117efc0 in llvm::FPPassManager::runOnFunction (this=0x188ba80,
F=...) at PassManager.cpp:1418
#8 0x00000000011804f5 in llvm::FunctionPassManagerImpl::run (this=0x188f480,
F=...) at PassManager.cpp:1369
#9 0x00000000011806b4 in llvm::FunctionPassManager::run (this=0x7fffffffe5f0,
F=...) at PassManager.cpp:1299
#10 0x0000000000986539 in main (argc=3, argv=0x7fffffffe868) at llc.cpp:378
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 03:12:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 03:12:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7067] New: Destructor not invoked
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7067
Summary: Destructor not invoked
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4839)
--> (http://llvm.org/bugs/attachment.cgi?id=4839)
Example showing missing destructor
In the attached code, by observing the output we can see that 'X(int i, int j)'
is being invoked repeatedly on the same memory location, but '~X()' is never
being called. It is in g++, and should be.
This was reduced from a 'circualar_buffer' test case in boost.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 04:47:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 04:47:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 1642] SjLj (setjmp/longjmp)-based exception
handling in LLVM-GCC seems to be unsupported for anything non arm/darwin
In-Reply-To:
References:
Message-ID: <20100506094715.BD88F3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=1642
Anton Korobeynikov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #7 from Anton Korobeynikov 2010-05-06 04:47:15 CDT ---
Definitely should be reopened
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 05:23:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 05:23:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5274] clang: doesn't add noalias attribute for
restrict qualifier
In-Reply-To:
References:
Message-ID: <20100506102301.7120A3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5274
Pekka J??skel?inen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |pekka.jaaskelainen at tut.fi
Version|unspecified |2.7
Resolution|FIXED |
--- Comment #2 from Pekka J??skel?inen 2010-05-06 05:23:01 CDT ---
This is broken (still/again?) in LLVM 2.7:
test2.c:
int foo(char *restrict s)
{
return 0;
}
clang test2.c -c -emit-llvm -o - | llvm-dis
...
define i32 @foo(i8* %s) nounwind {
entry:
%retval = alloca i32, align 4 ; [#uses=2]
%s.addr = alloca i8*, align 8 ; [#uses=1]
store i8* %s, i8** %s.addr
store i32 0, i32* %retval
%0 = load i32* %retval ; [#uses=1]
ret i32 %0
}
vs.
tce-llvm-gcc --std=c99 test2.c -c --emit-llvm -o - | llvm-dis
...
define i32 @foo(i8* noalias %s) nounwind {
entry:
%s_addr = alloca i8* ; [#uses=1]
%retval = alloca i32 ; [#uses=2]
%"alloca point" = bitcast i32 0 to i32 ; [#uses=0]
store i8* %s, i8** %s_addr
store i32 0, i32* %retval, align 4
br label %return
return: ; preds = %entry
%retval1 = load i32* %retval ; [#uses=1]
ret i32 %retval1
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 05:27:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 05:27:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7068] New: clang stddef.h does not define wint_t
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7068
Summary: clang stddef.h does not define wint_t
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Headers
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu
In g++ 4.4.3 (possibly earlier):
The code:
'#include ' fails on clang, as stddef.h defines (via a series of
macros and ifdefs):
typedef unsigned int wint_t;
On the other hand
#include
#include
works correctly on both compilers, as wchar.h defines wint_t if it is not
otherwise defined.
This blocks some boost files when using g++ 4.4.3 as the underlying compiler.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 07:15:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 07:15:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7068] clang stddef.h does not define wint_t
In-Reply-To:
References:
Message-ID: <20100506121527.DC0A23128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7068
Sylv?re Teissier changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |quickslyver at free.fr
Resolution| |DUPLICATE
--- Comment #1 from Sylv?re Teissier 2010-05-06 07:15:27 CDT ---
*** This bug has been marked as a duplicate of bug 6691 ***
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 08:09:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 08:09:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7069] New: Clang fails to compile when including
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7069
Summary: Clang fails to compile when including
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nbigaouette at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I compiled Clang from SVN (tried revision 102493 and 103172) on ArchLinux using
this: http://aur.archlinux.org/packages.php?ID=20222
Compiling my project failed and I identified the problem. Here is the simplest
file where the problem arise:
#include
//#include
int main()
{
//std::cout << "Hello, world!\n";
}
Compiling gives:
clang++ test.cpp -o test
In file included from test.cpp:1:
/usr/include/c++/4.5.0/iomanip:63:12: error: expected expression
{ return { __mask }; }
^
/usr/include/c++/4.5.0/iomanip:93:12: error: expected expression
{ return { __mask }; }
^
/usr/include/c++/4.5.0/iomanip:124:12: error: expected expression
{ return { __base }; }
^
/usr/include/c++/4.5.0/iomanip:162:14: error: expected expression
{ return { __c }; }
^
/usr/include/c++/4.5.0/iomanip:192:12: error: expected expression
{ return { __n }; }
^
/usr/include/c++/4.5.0/iomanip:222:12: error: expected expression
{ return { __n }; }
^
6 errors generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 09:16:07 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 09:16:07 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7065] Inconsistent treatment of using declarations
In-Reply-To:
References:
Message-ID: <20100506141607.A8FC23128042@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7065
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2010-05-06 09:16:07 CDT ---
Clang is correct; Comeau and g++ are wrong not to diagnose these errors. See
C++ [namespace.udecl]p10:
A using-declaration is a declaration and can therefore be used repeatedly
where (and only where) multiple declarations are allowed.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 10:18:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 10:18:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7070] New: Scalar cast to vector,
implicit conversion, and function selection
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7070
Summary: Scalar cast to vector, implicit conversion, and
function selection
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
I think the following three issues are all related.
Scalars cast to vectors should not be allowed
(http://www.freescale.com/files/32bit/doc/ref_manual/ALTIVECPIM.pdf 2.4.6):
float f = 1.0f;
__attribute__((vector_size(16))) float v = (__attribute__((vector_size(16)))
float)f;
clang -cc1 vcast.cpp
(no error generated)
Problem with function selection:
class test
{
public:
test( float x );
test(__attribute__((vector_size(16))) float v );
};
int vi = 0;
void func()
{
test object(vi);
}
>clang -cc1 scalar.cpp
scalar.cpp:13:7: error: call to constructor of 'test' is ambiguous
test object(vi);
^ ~~
scalar.cpp:5:2: note: candidate constructor
test( float x );
^
scalar.cpp:6:2: note: candidate constructor
test(__attribute__((vector_size(16))) float v );
^
scalar.cpp:2:7: note: candidate is the implicit copy constructor
class test
^
1 error generated.
Because casts of scalars to vectors should not be allowed, there should really
only be one candidate function. Adding "explicit" to the vector constructor
doesn't help either.
This is probably the same issue, but just in case:
class SimdReal
{
public:
SimdReal(const __attribute__((vector_size(16))) float x);
SimdReal(float x);
};
class Vector4
{
public:
Vector4(const __attribute__((vector_size(16))) float q);
};
void mul(const SimdReal& r);
void mul(const Vector4& v);
float vf = 0.0f;
void func()
{
mul(vf);
}
>clang -cc1 consel.cpp
consel.cpp:20:2: error: call to 'mul' is ambiguous
mul(vf);
^~~
consel.cpp:13:6: note: candidate function
void mul(const SimdReal& r);
^
consel.cpp:14:6: note: candidate function
void mul(const Vector4& v);
^
1 error generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 10:48:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 10:48:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7071] New: Less-than-awesome warning about
unreachable code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7071
Summary: Less-than-awesome warning about unreachable code
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: hv at crypt.org
CC: llvmbugs at cs.uiuc.edu
zen% cat clangtest3.c
#define limited(type, value) type ? ((type * value <= 1) ? value : 1) : value
unsigned int arena_value = limited(0, sizeof(int));
zen% clang -c -W clangtest3.c
clangtest3.c:2:28: warning: comparison of 0 <= unsigned expression is always
true [-Wsign-compare]
unsigned int arena_value = limited(0, sizeof(int));
^~~~~~~~~~~~~~~~~~~~~~~
clangtest3.c:1:52: note: instantiated from:
#define limited(type, value) type ? ((type * value <= 1) ? value : 1) : value
^ ~
1 warning generated.
zen%
(This is cut down from an example using FIT_ARENA() in the perl source code.)
Note that if 'sizeof(int)' is replaced with a literal 4, this does not warn.
While the warning is true, it is unuseful: it would in principle be possible to
determine that due to the constant in the conditional, the complained-of code
is not reached.
Hugo
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 10:57:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 10:57:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7072] New: Small crashing example: ()(
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7072
Summary: Small crashing example: ()(
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4846)
--> (http://llvm.org/bugs/attachment.cgi?id=4846)
tiny crashing example
clang++ crashes on a file containing the three characters:
()(
()(
^
Assertion failed: (!IncludeMacroStack.empty() && "Ran out of stack entries to
load"), function RemoveTopOfLexerStack, file PPLexerChange.cpp, line 286.
0 clang 0x00f57119 PrintStackTrace(void*) + 45
1 clang 0x00f57663 SignalHandler(int) + 374
2 libSystem.B.dylib 0x91cc842b _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1848867839
4 libSystem.B.dylib 0x91d558e5 raise + 26
5 libSystem.B.dylib 0x91d6b99c abort + 93
6 libSystem.B.dylib 0x91d58544 __pthread_markcancel + 0
7 clang 0x00633430 clang::Preprocessor::RemoveTopOfLexerStack() +
94
8 clang 0x00629b2e clang::Preprocessor::ExitCachingLexMode() + 32
9 clang 0x006293cf clang::Preprocessor::CachingLex(clang::Token&)
+ 123
10 clang 0x00617390 clang::Preprocessor::Lex(clang::Token&) + 192
11 clang 0x005f44f5 clang::Parser::ConsumeParen() + 209
12 clang 0x00610f17 clang::Parser::SkipUntil(clang::tok::TokenKind
const*, unsigned int, bool, bool) + 403
13 clang 0x00617548 clang::Parser::SkipUntil(clang::tok::TokenKind,
bool, bool) + 60
14 clang 0x005d6d6b
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*) + 193
15 clang 0x006124df
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AttributeList*, clang::AccessSpecifier) + 1001
16 clang 0x0061252c
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::AttributeList*,
clang::AccessSpecifier) + 66
17 clang 0x006142a4
clang::Parser::ParseExternalDeclaration(clang::CXX0XAttributeList) + 2222
18 clang 0x006143ea
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<1>&) + 268
19 clang 0x0023f3f1 clang::ParseAST(clang::Preprocessor&,
clang::ASTConsumer*, clang::ASTContext&, bool, bool,
clang::CodeCompleteConsumer*) + 426
20 clang 0x0006367f clang::ASTFrontendAction::ExecuteAction() + 269
21 clang 0x0006379c clang::FrontendAction::Execute() + 278
22 clang 0x00047427
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
23 clang 0x0002a11f cc1_main(char const**, char const**, char
const*, void*) + 1979
24 clang 0x0002e039 main + 272
25 clang 0x00028e5d start + 53
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
i386-apple-darwin10.0.0 -S -disable-free -main-file-name t.cc -pic-level 1
-mdisable-fp-elim -target-cpu yonah -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -fmacro-backtrace-limit 6 -ftemplate-backtrace-limit 10
-fmessage-length 80 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/M8/M86fCFVgGQ0r-V2oY5lLC++++TI/-Tmp-/cc-TT0otg.s -x c++ t.cc
1. t.cc:1:3: current parser token '('
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 10:57:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 10:57:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7073] New: Tiny crashing example: ::(
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7073
Summary: Tiny crashing example: ::(
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 11:03:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 11:03:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7074] New: Small crashing example
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7074
Summary: Small crashing example
Product: clang
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4848)
--> (http://llvm.org/bugs/attachment.cgi?id=4848)
Tiny crashing testcase
The code a(struct a::a
crashes clang++ with:
clang: Decl.cpp:1550: void
clang::TagDecl::setQualifierInfo(clang::NestedNameSpecifier*,
clang::SourceRange): Assertion `QualifierRange.isInvalid()' failed.
0 clang 0x00000000014a52a6
1 clang 0x00000000014a518d
2 libpthread.so.0 0x00007fa7816fe8f0
3 libc.so.6 0x00007fa7809eea75 gsignal + 53
4 libc.so.6 0x00007fa7809f25c0 abort + 384
5 libc.so.6 0x00007fa7809e7941 __assert_fail + 241
6 clang 0x00000000009b9ee9
7 clang 0x00000000006d9139
8 clang 0x0000000000a711c0
9 clang 0x0000000000a65a0a
10 clang 0x0000000000a6acea
11 clang 0x0000000000a6a31e
12 clang 0x0000000000a694e7
13 clang 0x0000000000a690ef
14 clang 0x0000000000a629f8
15 clang 0x0000000000a5d2ae
16 clang 0x0000000000a5d317
17 clang 0x0000000000a5cca6
18 clang 0x0000000000a5c57d
19 clang 0x00000000006914dc
20 clang 0x0000000000437558
21 clang 0x00000000004371c3
22 clang 0x00000000004213ef
23 clang 0x0000000000409172
24 clang 0x000000000040dcfe main + 259
25 libc.so.6 0x00007fa7809d9c4d __libc_start_main + 253
26 clang 0x0000000000407b49
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.bashed.24036.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -fmessage-length 181 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-lNN2N6.s -x c++
t.bashed.24036.cc
1. parser at end of file
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
From bugzilla-daemon at llvm.org Thu May 6 11:05:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 6 May 2010 11:05:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7075] New: Crashing example: struct{a():}}{
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7075
Summary: Crashing example: struct{a():}}{
Product: clang
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4849)
--> (http://llvm.org/bugs/attachment.cgi?id=4849)
Tiny crashing testcase
clang++ crashes on:
struct{a():}}{
caj at nyanko:~/fuzzed$ clang++ -c t.bashed.26786.cc
t.bashed.26786.cc:1:8: error: C++ requires a type specifier for all
declarations
struct{a():}}{
^
t.bashed.26786.cc:1:12: error: expected class member or base class name
struct{a():}}{
^
t.bashed.26786.cc:1:12: error: expected '{' or ','
t.bashed.26786.cc:1:11: error: only constructors take base initializers
struct{a():}}{
^
t.bashed.26786.cc:1:15: error: expected '}'
struct{a():}}{
^
clang: ParseCXXInlineMethods.cpp:237: void
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&): Assertion
`!PP.getSourceManager().isBeforeInTranslationUnit(origLoc, Tok.getLocation())
&& "We consumed more than the cached tokens!"' failed.
0 clang 0x00000000014a52a6
1 clang 0x00000000014a518d
2 libpthread.so.0 0x00007f868af558f0
3 libc.so.6 0x00007f868a245a75 gsignal + 53
4 libc.so.6 0x00007f868a2495c0 abort + 384
5 libc.so.6 0x00007f868a23e941 __assert_fail + 241
6 clang 0x0000000000a8d857
7 clang 0x0000000000a734cf
8 clang 0x0000000000a7136c
9 clang 0x0000000000a65a0a
10 clang 0x0000000000a5ced1
11 clang 0x0000000000a5d317
12 clang 0x0000000000a5cca6
13 clang 0x0000000000a5c57d
14 clang 0x00000000006914dc
15 clang 0x0000000000437558
16 clang 0x00000000004371c3
17 clang 0x00000000004213ef
18 clang 0x0000000000409172
19 clang 0x000000000040dcfe main + 259
20 libc.so.6 0x00007f868a230c4d __libc_start_main + 253
21 clang 0x0000000000407b49
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.bashed.26786.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -fmessage-length 181 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-Mer49r.s -x c++
t.bashed.26786.cc
1. parser at end of file
2. t.bashed.26786.cc:1:1: parsing struct/union/class body '