From bugzilla-daemon at llvm.org Mon Apr 1 06:19:51 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 13:19:51 +0000
Subject: [LLVMbugs] [Bug 15633] New: a bug involving defining enumeration
outside of template class body
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15633
Bug ID: 15633
Summary: a bug involving defining enumeration outside of
template class body
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: zhangxiongpang at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Platform: linux, x86_84, clang++3.3 (trunk 177699), g++4.7.2
Today I wrote some code testing c++11 "Forwarding declaration of enumerations".
And a strange thing occurred. The following code makes clang++ core dump and
makes g++ got into a dead loop.
----------------------------------
template
struct X {
struct Y {
enum class E : T;
};
};
template
enum class X::Y::E : T { e1, e2 };
template class X;
----------------------------------
The core dump information is as follows:
----------------------------------
clang:
/root/work/newdisk/zhang/llvm/llvm/tools/clang/lib/Sema/SemaTemplate.cpp:863:
clang::DeclResult clang::Sema::CheckClassTemplate(clang::Scope*, unsigned int,
clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&,
clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*,
clang::TemplateParameterList*, clang::AccessSpecifier, clang::SourceLocation,
unsigned int, clang::TemplateParameterList**): Assertion `Kind != TTK_Enum &&
"can't build template of enumerated type"' failed.
0 clang 0x0000000002f4e50d llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 clang 0x0000000002f4e78a
2 clang 0x0000000002f4e1e2
3 libpthread.so.0 0x0000003ffd40f4c0
4 libc.so.6 0x0000003ffcc329a5 gsignal + 53
5 libc.so.6 0x0000003ffcc34185 abort + 373
6 libc.so.6 0x0000003ffcc2b935 __assert_fail + 245
7 clang 0x00000000014514e6
clang::Sema::CheckClassTemplate(clang::Scope*, unsigned int,
clang::Sema::TagUseKind, clang::SourceLocation, clang::CXXScopeSpec&,
clang::IdentifierInfo*, clang::SourceLocation, clang::AttributeList*,
clang::TemplateParameterList*, clang::AccessSpecifier, clang::SourceLocation,
unsigned int, clang::TemplateParameterList**) + 290
8 clang 0x0000000001222119 clang::Sema::ActOnTag(clang::Scope*,
unsigned int, clang::Sema::TagUseKind, clang::SourceLocation,
clang::CXXScopeSpec&, clang::IdentifierInfo*, clang::SourceLocation,
clang::AttributeList*, clang::AccessSpecifier, clang::SourceLocation,
llvm::MutableArrayRef, bool&, bool&,
clang::SourceLocation, bool,
clang::ActionResult, false>) + 637
9 clang 0x00000000010fe46c
clang::Parser::ParseEnumSpecifier(clang::SourceLocation, clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 4258
10 clang 0x00000000010fc207
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 9139
11 clang 0x000000000114b09b
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 425
12 clang 0x000000000114aea4
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 1046
13 clang 0x000000000114a9e5
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 217
14 clang 0x00000000010f6d0e
clang::Parser::ParseDeclaration(llvm::SmallVector&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 242
15 clang 0x00000000010e5a32
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1622
16 clang 0x00000000010e53ab
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 413
17 clang 0x00000000010e1db2 clang::ParseAST(clang::Sema&, bool, bool)
+ 610
18 clang 0x0000000000cd5ef4 clang::ASTFrontendAction::ExecuteAction()
+ 298
19 clang 0x0000000000f056e6 clang::CodeGenAction::ExecuteAction() +
1296
20 clang 0x0000000000cd5a76 clang::FrontendAction::Execute() + 200
21 clang 0x0000000000caabc4
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 722
22 clang 0x0000000000c7acee
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1048
23 clang 0x0000000000c6ab87 cc1_main(char const**, char const**, char
const*, void*) + 673
24 clang 0x0000000000c7528d main + 484
25 libc.so.6 0x0000003ffcc1ec5d __libc_start_main + 253
26 clang 0x0000000000c6a309
Stack dump:
0. Program arguments:
/root/work/newdisk/zhang/llvm/build/Debug+Asserts/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.51.0.2 -momit-leaf-frame-pointer -coverage-file
/root/work/newdisk/zhang/c++11/20130401/forward_declarations_for_enums/test.o
-resource-dir
/root/work/newdisk/zhang/llvm/build/Debug+Asserts/bin/../lib/clang/3.3
-I/opt/intel/composer_xe_2013.1.117/mkl/include
-I/opt/intel/composer_xe_2013.1.117/tbb/include -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/backward
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/x86_64-redhat-linux/c++/4.4.4
-internal-isystem /usr/local/include -internal-isystem
/root/work/newdisk/zhang/llvm/build/Debug+Asserts/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/root/work/newdisk/zhang/c++11/20130401/forward_declarations_for_enums
-ferror-limit 19 -fmessage-length 114 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o test.o -x c++ test.cpp
1. test.cpp:11:27: current parser token '{'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 177699) (llvm/trunk 177691)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test-9ucxjN.cpp
clang: note: diagnostic msg: /tmp/test-9ucxjN.sh
clang: note: diagnostic msg:
********************
----------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 10:41:51 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 17:41:51 +0000
Subject: [LLVMbugs] [Bug 12527] initialization from an _Atomic variable
causes assert
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=12527
Richard Smith changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Richard Smith ---
Confirmed. Regression test added in r178476.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 10:51:18 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 17:51:18 +0000
Subject: [LLVMbugs] [Bug 5952] pragmas not copied to the preprocessed output
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=5952
Rafael Ávila de Espíndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Rafael Ávila de Espíndola ---
Thanks for testing it again!
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 11:01:18 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 18:01:18 +0000
Subject: [LLVMbugs] [Bug 15634] New: Diagnostic for failed template
deduction is insufficient
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15634
Bug ID: 15634
Summary: Diagnostic for failed template deduction is
insufficient
Product: clang
Version: 3.2
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: berkus at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Using this sample code
[code]
#include
#include
class byte_array
{
std::vector value;
public:
template
byte_array(const std::array& in) : value(in.begin(), in.begin() + N)
{}
};
int main()
{
boost::array arr;
byte_array data(arr);
}
[/code]
(see http://liveworkspace.org/code/2uLY7q$4)
Clang's error diagnostic is quite not sufficient to spot and fix the error:
[irrelevant text skipped]
source.cpp:9:5: note: candidate template ignored: failed template argument
deduction
byte_array(const std::array& in) : value(in.begin(), in.begin() + N)
{}
^
1 error generated.
Gcc 4.8.0 on the other hand provides much more helpful text, which lets fix the
error on the spot (even gcc 4.7.2 nails it):
source.cpp:9:5: note: template argument deduction/substitution failed:
source.cpp:15:23: note: 'boost::array' is not derived
from 'const std::array<_Tp, _Nm>'
byte_array data(arr);
^
It is possible to test the output of both the compilers with provided test code
on the liveworkspace website directly.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 11:20:13 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 18:20:13 +0000
Subject: [LLVMbugs] [Bug 15635] New: Crash shell script writer doesn't
escape quotes correctly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15635
Bug ID: 15635
Summary: Crash shell script writer doesn't escape quotes
correctly
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
If you pass a command-lien flag that contains escaped quotes, the .sh script
written on crash time won't execute correctly:
thakis$ cat test.cc
#pragma clang __debug parser_crash
thakis$ ~/src/llvm-svn/Release+Asserts/bin/clang -c test.cc -D
'WEBCORE_NAVIGATOR_VENDOR="Google Inc.\"'
0 clang 0x00000001106bfbf8 llvm::sys::PrintStackTrace(__sFILE*) +
40
1 clang 0x00000001106c0154 SignalHandler(int) + 548
2 libsystem_c.dylib 0x00007fff87fa194a _sigtramp + 26
3 clang 0x000000011087c41f NaNL + 6320
4 clang 0x000000010f1a9e20
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 576
5 clang 0x000000010f1a16e4
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 612
6 clang 0x000000010f207be6
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 694
7 clang 0x000000010f207639
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 361
8 clang 0x000000010f206b4c
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3020
9 clang 0x000000010f205f04
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 308
10 clang 0x000000010f1932b1 clang::ParseAST(clang::Sema&, bool,
bool) + 257
11 clang 0x000000010f151bd7 clang::CodeGenAction::ExecuteAction() +
215
12 clang 0x000000010ef22457 clang::FrontendAction::Execute() + 119
13 clang 0x000000010eefe70d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957
14 clang 0x000000010eec718a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3690
15 clang 0x000000010eebe330 cc1_main(char const**, char const**,
char const*, void*) + 816
16 clang 0x000000010eec44a9 main + 7049
17 libdyld.dylib 0x00007fff81ba07e1 start + 0
Stack dump:
0. Program arguments:
/Volumes/MacintoshHD2/src/llvm-svn/Release+Asserts/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free -main-file-name
test.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 136 -coverage-file
/Users/thakis/src/chrome-git/src/test.o -resource-dir
/Volumes/MacintoshHD2/src/llvm-svn/Release+Asserts/bin/../lib/clang/3.3 -D
WEBCORE_NAVIGATOR_VENDOR="Google Inc.\"" -fdeprecated-macro
-fdebug-compilation-dir /Users/thakis/src/chrome-git/src -ferror-limit 19
-fmessage-length 302 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.8.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o test.o -x c++ test.cc
1. parser at unknown location
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 178474)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.cpp
clang: note: diagnostic msg:
/var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.sh
clang: note: diagnostic msg:
********************
thakis$ chmod +x
/var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.sh
thakis$ /var/folders/00/0d5yr000h01000cxqpysvccm001mqv/T/test-HimD0k.sh
error: error reading 'Inc.\"'
error: error reading 'test-HimD0k.cpp'
2 errors generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 11:24:04 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 18:24:04 +0000
Subject: [LLVMbugs] [Bug 15636] New: clang should warn on suspicious
increments of loop variables
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15636
Bug ID: 15636
Summary: clang should warn on suspicious increments of loop
variables
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: resistor at mac.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Consider the following code snippet:
void foo(char *a, char *b, unsigned c) {
for (unsigned i = 0; i < c; ++i) {
a[i] = b[i];
++i;
}
}
clang does not currently warn on this, even though the code is likely incorrect
(incrementing i both in the loop latch and in the body of the loop). clang
should produce a warning when it detects a variable that is incremented in the
latch of the for header, and *unconditionally* incremented in the body of the
loop.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 12:36:41 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 19:36:41 +0000
Subject: [LLVMbugs] [Bug 15637] New: Regression: Assertion failed:
((!TParams || DbgNode->getNumOperands() == 14) && "If you're setting the
template parameters this should include a slot " "for that!"),
function setTypeArray, file DebugInfo.cpp, line 623.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15637
Bug ID: 15637
Summary: Regression: Assertion failed: ((!TParams ||
DbgNode->getNumOperands() == 14) && "If you're setting
the template parameters this should include a slot "
"for that!"), function setTypeArray, file
DebugInfo.cpp, line 623.
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
This is reduced from code in WebKit:
thakis$ cat repro.ii
template union Value { int a; };
void g(float value) {
Value tempValue;
}
thakis$ ~/src/llvm-svn/Release+Asserts/bin/clang -cc1 -triple
i386-apple-macosx10.6.0 -emit-obj -g -x c++ repro.ii
Assertion failed: ((!TParams || DbgNode->getNumOperands() == 14) && "If you're
setting the template parameters this should include a slot " "for that!"),
function setTypeArray, file DebugInfo.cpp, line 623.
0 clang 0x000000010b58cbf8 llvm::sys::PrintStackTrace(__sFILE*) +
40
1 clang 0x000000010b58d154 SignalHandler(int) + 548
2 libsystem_c.dylib 0x00007fff87fa194a _sigtramp + 26
3 clang 0x000000010b4b844c llvm::DIDescriptor::isCompositeType()
const + 28
4 clang 0x000000010b58cf16 abort + 22
5 clang 0x000000010b58cef1 __assert_rtn + 81
6 clang 0x000000010b4b9846
llvm::DICompositeType::setTypeArray(llvm::DIArray, llvm::DIArray) + 278
7 clang 0x0000000109f746e4
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 1268
This is at r178474 (which was current trunk when I started delta an hour or so
ago). Doesn't happen at r178178.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 12:52:51 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 19:52:51 +0000
Subject: [LLVMbugs] [Bug 15638] New: Possible memory leak when starting a
new thread
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15638
Bug ID: 15638
Summary: Possible memory leak when starting a new thread
Product: libc++
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: hhinnant at apple.com
Reporter: louis.dionne92 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
While looking at the code in , I ran into the following:
template
void* __thread_proxy(void* __vp) {
__thread_local_data().reset(new __thread_struct);
std::unique_ptr<_Fp> __p(static_cast<_Fp*>(__vp));
.....
}
template
thread::thread(_Fp&& __f, _Args&&... __args) {
typedef tuple::type, typename decay<_Args>::type...>
_Gp;
_VSTD::unique_ptr<_Gp> __p(new _Gp(__decay_copy(_VSTD::forward<_Fp>(__f)),
__decay_copy(_VSTD::forward<_Args>(__args))...));
int __ec = pthread_create(&__t_, 0, &__thread_proxy<_Gp>, __p.get());
if (__ec == 0)
__p.release();
else
__throw_system_error(__ec, "thread constructor failed");
}
Unless I am mistaken, if the allocation fails on the first line of
__thread_proxy, __vp will never be freed because it is not yet owned by
the unique_ptr. Simply changing the order of the first two lines in
__thread_proxy would fix the issue.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 13:33:39 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 20:33:39 +0000
Subject: [LLVMbugs] [Bug 15637] Regression: Assertion failed: ((!TParams ||
DbgNode->getNumOperands() == 14) && "If you're setting the template
parameters this should include a slot " "for that!"), function setTypeArray,
file DebugInfo.cpp, line 623.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15637
Nico Weber changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Nico Weber ---
Reverted r178079 in r178497 for now.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 13:47:23 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 20:47:23 +0000
Subject: [LLVMbugs] [Bug 15639] New: regression: clang trunk r178466 crashes
building ITK ('itk::Math::FloatAlmostEqual')
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15639
Bug ID: 15639
Summary: regression: clang trunk r178466 crashes building ITK
('itk::Math::FloatAlmostEqual')
Product: new-bugs
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: sean at rogue-research.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10263
--> http://llvm.org/bugs/attachment.cgi?id=10263&action=edit
requested files
I have a buildbot that builds nightly ITK with a recent build of clang (that I
rebuild every few weeks).
I updated clang from r177175 to r178252 and then it started crashing. Updated
to r178466 and it's still crashing.
My ITK nightly build log:
Basically:
0 clang-3.3 0x0000000106b0c258 llvm::sys::PrintStackTrace(__sFILE*) +
40
1 clang-3.3 0x0000000106b0c744 SignalHandler(int) + 436
2 libsystem_c.dylib 0x00007fff8327894a _sigtramp + 26
3 libsystem_c.dylib 0x00007fff59af7350 _sigtramp + 3599231520
4 clang-3.3 0x0000000106a52572
llvm::MDNode::replaceOperand(llvm::MDNodeOperand*, llvm::Value*) + 274
5 clang-3.3 0x00000001069f442a
llvm::DICompositeType::setTypeArray(llvm::DIArray, llvm::DIArray) + 122
6 clang-3.3 0x0000000106d03626
clang::CodeGen::CGDebugInfo::CreateType(clang::RecordType const*) + 1302
7 clang-3.3 0x0000000106d05994
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
740
8 clang-3.3 0x0000000106cfdd96
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
118
9 clang-3.3 0x0000000106cfda72
clang::CodeGen::CGDebugInfo::getContextDescriptor(clang::Decl const*) + 338
10 clang-3.3 0x0000000106d00e75
clang::CodeGen::CGDebugInfo::CreateType(clang::TypedefType const*,
llvm::DIFile) + 197
11 clang-3.3 0x0000000106d05984
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
724
12 clang-3.3 0x0000000106cfdd96
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
118
13 clang-3.3 0x0000000106d00fd2
clang::CodeGen::CGDebugInfo::CreateType(clang::FunctionType const*,
llvm::DIFile) + 242
14 clang-3.3 0x0000000106d05817
clang::CodeGen::CGDebugInfo::CreateTypeNode(clang::QualType, llvm::DIFile) +
359
15 clang-3.3 0x0000000106cfdd96
clang::CodeGen::CGDebugInfo::getOrCreateType(clang::QualType, llvm::DIFile) +
118
16 clang-3.3 0x0000000106d0622d
clang::CodeGen::CGDebugInfo::getOrCreateFunctionType(clang::Decl const*,
clang::QualType, llvm::DIFile) + 93
17 clang-3.3 0x0000000106d067c9
clang::CodeGen::CGDebugInfo::EmitFunctionStart(clang::GlobalDecl,
clang::QualType, llvm::Function*, llvm::IRBuilder >&) + 713
18 clang-3.3 0x0000000106d9d8a4
clang::CodeGen::CodeGenFunction::StartFunction(clang::GlobalDecl,
clang::QualType, llvm::Function*, clang::CodeGen::CGFunctionInfo const&,
clang::CodeGen::FunctionArgList const&, clang::SourceLocation) + 1060
19 clang-3.3 0x0000000106d9e423
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 563
20 clang-3.3 0x0000000106da7379
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 585
21 clang-3.3 0x0000000106da499c
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 220
22 clang-3.3 0x0000000106da19db
clang::CodeGen::CodeGenModule::EmitDeferred() + 27
23 clang-3.3 0x0000000106da18a1
clang::CodeGen::CodeGenModule::Release() + 17
24 clang-3.3 0x0000000106d9af2d
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 93
25 clang-3.3 0x0000000106ef6a54 clang::ParseAST(clang::Sema&, bool,
bool) + 516
26 clang-3.3 0x0000000106d9a21b clang::CodeGenAction::ExecuteAction() +
91
27 clang-3.3 0x0000000106e7d518 clang::FrontendAction::Execute() + 88
28 clang-3.3 0x0000000106e5b8cd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 861
29 clang-3.3 0x0000000106b0f127
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3623
30 clang-3.3 0x0000000106107815 cc1_main(char const**, char const**,
char const*, void*) + 773
31 clang-3.3 0x00000001061059c6 main + 6518
32 libdyld.dylib 0x00007fff8adf77e1 start + 0
Stack dump:
0. Program arguments: /Users/builder/llvm/llvm-rel-install/bin/clang-3.3
-cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name itkMathTest.cxx -mrelocation-model pic
-pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-g -coverage-file
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common/test/CMakeFiles/itkMathTest.dir/itkMathTest.cxx.o
-resource-dir /Users/builder/llvm/llvm-rel-install/bin/../lib/clang/3.3
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
-D _FORTIFY_SOURCE=2 -I
/Users/builder/external/ITK/Modules/ThirdParty/DoubleConversion/src/double-conversion
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/KWSys/src
-I /Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/v3p/netlib -I
/Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/vcl -I
/Users/builder/external/ITK/Modules/ThirdParty/VNL/src/vxl/core -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/v3p/netlib
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/vcl
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/VNL/src/vxl/core
-I /Users/builder/external/ITK/Modules/ThirdParty/VNLInstantiation/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common -I
/Users/builder/external/ITK/Modules/Core/Common/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/IO/ImageBase -I
/Users/builder/external/ITK/Modules/IO/ImageBase/include -I
/Users/builder/external/ITK/Modules/Core/ImageAdaptors/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageFilterBase/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/Netlib
-I /Users/builder/external/ITK/Modules/Numerics/Statistics/include -I
/Users/builder/external/ITK/Modules/Core/Transform/include -I
/Users/builder/external/ITK/Modules/Core/ImageFunction/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageGrid/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageCompose/include -I
/Users/builder/external/ITK/Modules/Core/Mesh/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/ZLIB/src
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/MetaIO/src/MetaIO
-I /Users/builder/external/ITK/Modules/ThirdParty/MetaIO/src/MetaIO -I
/Users/builder/external/ITK/Modules/Core/SpatialObjects/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageStatistics/include -I
/Users/builder/external/ITK/Modules/Filtering/Path/include -I
/Users/builder/external/ITK/Modules/Filtering/ImageIntensity/include -I
/Users/builder/external/ITK/Modules/IO/BMP/include -I
/Users/builder/external/ITK/Modules/IO/BioRad/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/Expat/src/expat
-I /Users/builder/external/ITK/Modules/ThirdParty/Expat/src/expat -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/OpenJPEG/src/openjpeg
-I /Users/builder/external/ITK/Modules/ThirdParty/OpenJPEG/src/openjpeg -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/GDCM -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/GDCM/src/gdcm/Source/Common
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataDictionary
-I /Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/Common
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/InformationObjectDefinition
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/MessageExchangeDefinition
-I
/Users/builder/external/ITK/Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition
-I /Users/builder/external/ITK/Modules/IO/GDCM/include -I
/Users/builder/external/ITK/Modules/IO/GIPL/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/JPEG/src
-I /Users/builder/external/ITK/Modules/ThirdParty/JPEG/src -I
/Users/builder/external/ITK/Modules/IO/JPEG/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/TIFF/src
-I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/TIFF/src/itktiff
-I /Users/builder/external/ITK/Modules/ThirdParty/TIFF/src -I
/Users/builder/external/ITK/Modules/IO/TIFF/include -I
/Users/builder/external/ITK/Modules/IO/LSM/include -I
/Users/builder/external/ITK/Modules/IO/Meta/include -I
/Users/builder/external/ITK/Modules/ThirdParty/NIFTI/src/nifti/niftilib -I
/Users/builder/external/ITK/Modules/ThirdParty/NIFTI/src/nifti/znzlib -I
/Users/builder/external/ITK/Modules/IO/NIFTI/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/NrrdIO/src/NrrdIO
-I /Users/builder/external/ITK/Modules/ThirdParty/NrrdIO/src/NrrdIO -I
/Users/builder/external/ITK/Modules/IO/NRRD/include -I
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/ThirdParty/PNG/src
-I /Users/builder/external/ITK/Modules/ThirdParty/PNG/src -I
/Users/builder/external/ITK/Modules/IO/PNG/include -I
/Users/builder/external/ITK/Modules/IO/Stimulate/include -I
/Users/builder/external/ITK/Modules/IO/VTK/include -I
/Users/builder/external/ITK/Modules/Core/TestKernel/include -Wall -Wextra
-Wno-unused-parameter -Wc++11-compat -Wall -Wcast-align -Wdisabled-optimization
-Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith
-Wshadow -Wunused -Wwrite-strings -Wno-strict-overflow -Wno-deprecated
-Wno-invalid-offsetof -Woverloaded-virtual -fconst-strings
-fdebug-compilation-dir
/Users/builder/external/ITK-clang-dbg-x86_64-static/Modules/Core/Common/test
-ferror-limit 19 -fmessage-length 0
-fsanitize=integer-divide-by-zero,null,object-size,return,unreachable,vla-bound
-stack-protector 2 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0
-fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
-fencode-extended-block-signature -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -backend-option -vectorize-loops -o
CMakeFiles/itkMathTest.dir/itkMathTest.cxx.o -x c++
/Users/builder/external/ITK/Modules/Core/Common/test/itkMathTest.cxx
1. parser at end of file
2. Per-file LLVM IR generation
3. /Users/builder/external/ITK/Modules/Core/Common/include/itkMath.h:258:1:
Generating code for declaration 'itk::Math::FloatAlmostEqual'
clang-3.3: error: unable to execute command: Segmentation fault: 11
clang-3.3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (178466)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
clang-3.3: note: diagnostic msg: PLEASE submit a bug report to and include the
crash backtrace, preprocessed source, and associated run script.
clang-3.3: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.3: note: diagnostic msg:
/var/folders/fk/hnnmm2h91xl6zvz8dl4y6b8r0000gn/T/itkMathTest-9Ljx8h.cpp
clang-3.3: note: diagnostic msg:
/var/folders/fk/hnnmm2h91xl6zvz8dl4y6b8r0000gn/T/itkMathTest-9Ljx8h.sh
clang-3.3: note: diagnostic msg:
********************
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 14:09:28 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 21:09:28 +0000
Subject: [LLVMbugs] [Bug 15639] regression: clang trunk r178466 crashes
building ITK ('itk::Math::FloatAlmostEqual')
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15639
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |echristo at gmail.com
Resolution|--- |DUPLICATE
--- Comment #1 from Eric Christopher ---
Should be dup.
*** This bug has been marked as a duplicate of bug 15637 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 14:13:03 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 21:13:03 +0000
Subject: [LLVMbugs] [Bug 15500] ARCMT uses an iterator after invalidation
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15500
Argyrios Kyrtzidis changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Argyrios Kyrtzidis ---
Should be fixed in r178500
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 14:26:26 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 21:26:26 +0000
Subject: [LLVMbugs] [Bug 15640] New: llvm crashes with Linux kernel code on
ARM target
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15640
Bug ID: 15640
Summary: llvm crashes with Linux kernel code on ARM target
Product: new-bugs
Version: trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: weimingz at codeaurora.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10264
--> http://llvm.org/bugs/attachment.cgi?id=10264&action=edit
clang -O3 q
clang: /home/weimingz/llvm/include/llvm/CodeGen/MachineOperand.h:260: unsigned
int llvm::MachineOperand::getReg() const: Assertion `isReg() && "This is not a
register operand!"' failed.
0 clang 0x0000000002c7e165 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 clang 0x0000000002c7e3e2
2 clang 0x0000000002c7de3a
3 libpthread.so.0 0x00007fa103acc8f0
4 libc.so.6 0x00007fa102bb3a75 gsignal + 53
5 libc.so.6 0x00007fa102bb75c0 abort + 384
6 libc.so.6 0x00007fa102bac941 __assert_fail + 241
7 clang 0x00000000020a6a79
8 clang 0x00000000020c68d9
llvm::ARMBaseRegisterInfo::eliminateFrameIndex(llvm::MachineBasicBlock::bundle_iterator >, int, unsigned int,
llvm::RegScavenger*) const + 935
9 clang 0x00000000024bce82
llvm::PEI::replaceFrameIndices(llvm::MachineFunction&) + 1476
10 clang 0x00000000024b9b33
llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 571
11 clang 0x0000000002476ca5
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
12 clang 0x0000000002b54c77
llvm::FPPassManager::runOnFunction(llvm::Function&) + 393
13 clang 0x0000000002b54e77
llvm::FPPassManager::runOnModule(llvm::Module&) + 89
14 clang 0x0000000002b551f2
llvm::MPPassManager::runOnModule(llvm::Module&) + 576
15 clang 0x0000000002b55818 llvm::PassManagerImpl::run(llvm::Module&)
+ 254
16 clang 0x0000000002b55b73 llvm::PassManager::run(llvm::Module&) +
39
17 clang 0x0000000000e83ada
18 clang 0x0000000000e83bb2
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 140
19 clang 0x0000000000e7e2d4
20 clang 0x0000000001062e7f clang::ParseAST(clang::Sema&, bool, bool)
+ 780
21 clang 0x0000000000c371da clang::ASTFrontendAction::ExecuteAction()
+ 298
22 clang 0x0000000000e7d139 clang::CodeGenAction::ExecuteAction() +
1425
23 clang 0x0000000000c36d5a clang::FrontendAction::Execute() + 200
24 clang 0x0000000000c0bfaa
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 728
25 clang 0x0000000000bdaa28
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1018
26 clang 0x0000000000bca930 cc1_main(char const**, char const**, char
const*, void*) + 754
27 clang 0x0000000000bd4f56 main + 499
28 libc.so.6 0x00007fa102b9ec4d __libc_start_main + 253
29 clang 0x0000000000bc9fa9
Stack dump:
0. Program arguments: /scratch/llvm-build/Debug+Asserts/bin/clang -cc1
-triple armv4t-none-linux-gnueabi -emit-obj -disable-free -main-file-name
context-parsed.i -mrelocation-model static -fmath-errno -ffp-contract=fast
-masm-verbose -mconstructor-aliases -target-abi aapcs-linux -target-cpu
arm7tdmi -mfloat-abi soft -target-feature +soft-float-abi
-target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir
/local/scratch/llvm-build/mainline-state-transtion/Debug+Asserts/bin/../lib/clang/3.3
-O3 -fdebug-compilation-dir
/prj/llvm-arm/home/weimingz/llvm_tests/bug_asm_inline/unittest -ferror-limit 19
-fmessage-length 174 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/context-parsed-VKo8Pc.o -x cpp-output
context-parsed.i
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 14:43:26 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 21:43:26 +0000
Subject: [LLVMbugs] [Bug 15642] New: clang -MMD doesn't escape dollar signs
in output
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15642
Bug ID: 15642
Summary: clang -MMD doesn't escape dollar signs in output
Product: clang
Version: 3.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: abbeyj at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When using "clang -MMD" with filenames that contain dollar signs, the dollar
signs are not escaped. If this output is used with make it won't be able to
find the prerequisites. For example:
$ /bin/ls -l
-rw-r--r-- 1 abbeyj users 75 Apr 1 17:36 Makefile
-rw-r--r-- 1 abbeyj users 0 Apr 1 17:35 dollar$sign.h
-rw-r--r-- 1 abbeyj users 25 Apr 1 17:32 main.c
$ cat Makefile
main.o: main.c
$(CC) -MMD -c main.c
-include main.d
clean:
$(RM) *.o *.d
$ cat main.c
#include "dollar$sign.h"
# works fine with gcc
$ make CC=gcc
gcc -MMD -c main.c
$ cat main.d
main.o: main.c dollar$$sign.h
$ make CC=gcc
make: `main.o' is up to date.
$ make clean
# fails with clang (once .d file has been created)
$ make CC=clang
clang -MMD -c main.c
$ cat main.d
main.o: main.c dollar$sign.h
$ make CC=clang
make: *** No rule to make target `dollarign.h', needed by `main.o'. Stop.
Since the dollar sign is not doubled, make tries to expand "$s" and gets an
empty string making it think the desired filename is "dollarign.h". Since that
file doesn't exist, the make then fails.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 14:43:54 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 21:43:54 +0000
Subject: [LLVMbugs] [Bug 15633] a bug involving defining enumeration outside
of template class body
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15633
Richard Smith changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |FIXED
--- Comment #1 from Richard Smith ---
Fixed in r178502.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 14:55:43 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 21:55:43 +0000
Subject: [LLVMbugs] [Bug 15644] New: Scalar replacement of aggregates slower
in LLVM 3.0+ relative to 2.8
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15644
Bug ID: 15644
Summary: Scalar replacement of aggregates slower in LLVM 3.0+
relative to 2.8
Product: libraries
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: ajclinto at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
This was originally sent to the LLVM mailing list after the LLVM 3.0 release,
but it still seems to be an issue in 3.2. The attached file optimizes much
faster (about 3x better) in LLVM 2.8 compared to 3.2. Performance didn't
change on this test case between 3.0 and 3.2.
time opt -scalarrepl slow_sroa.ll
On my system:
2.8: 0.16s
3.2: 0.5s
This is from email correspondence on llvm-dev:
------------------------------------------------------
Actually, -scalarrepl-ssa is the slower one.
On 04/05/2012 06:56 PM, Andrew Clinton wrote:
> Attached is the test case.
>
> Run:
>
> opt -scalarrepl slow_sroa.ll
>
> Andrew
>
> On 04/05/2012 05:11 PM, Nick Lewycky wrote:
>> I've patched SROA in a way that may have made it slower. Do you have a testcase we can look at?
>>
>> Nick
>>
>> On 4 April 2012 16:19, Andrew Clinton wrote:
>>
>> I just upgraded our optimizer to LLVM 3.0 from 2.8 and noticed that the
>> scalar replacement of aggregates pass takes a lot longer for some code.
>> Has there been a performance regression in this pass, or does it do more
>> work?
>>
>> LLVM 3.0:
>>
>> Total Execution Time: 1.0600 seconds (1.0526 wall clock)
>>
>> ---User Time--- --System Time-- --User+System-- ---Wall
>> Time--- --- Name ---
>> 0.5100 ( 49.5%) 0.0000 ( 0.0%) 0.5100 ( 48.1%) 0.5099 (
>> 48.4%) Scalar Replacement of Aggregates (SSAUp)
>> 0.1900 ( 18.4%) 0.0300 (100.0%) 0.2200 ( 20.8%) 0.2156 (
>> 20.5%) Scalar Replacement of Aggregates (DT)
>> 0.1200 ( 11.7%) 0.0000 ( 0.0%) 0.1200 ( 11.3%) 0.1158 (
>> 11.0%) VEX Constant Propagation
>> 0.0200 ( 1.9%) 0.0000 ( 0.0%) 0.0200 ( 1.9%) 0.0196 (
>> 1.9%) Simplify the CFG
>> 0.0200 ( 1.9%) 0.0000 ( 0.0%) 0.0200 ( 1.9%) 0.0181 (
>> 1.7%) Module Verifier
>> ...
>>
>> LLVM 2.8:
>>
>> Total Execution Time: 0.6500 seconds (0.6489 wall clock)
>>
>> ---User Time--- --System Time-- --User+System-- ---Wall
>> Time--- --- Name ---
>> 0.1400 ( 21.9%) 0.0000 ( 0.0%) 0.1400 ( 21.5%) 0.1379 (
>> 21.3%) Scalar Replacement of Aggregates
>> 0.1200 ( 18.7%) 0.0000 ( 0.0%) 0.1200 ( 18.5%) 0.1208 (
>> 18.6%) VEX Constant Propagation
>> 0.1000 ( 15.6%) 0.0000 ( 0.0%) 0.1000 ( 15.4%) 0.1050 (
>> 16.2%) Scalar Replacement of Aggregates
>> 0.0400 ( 6.3%) 0.0000 ( 0.0%) 0.0400 ( 6.2%) 0.0481 (
>> 7.4%) Combine redundant instructions
>> 0.0200 ( 3.1%) 0.0000 ( 0.0%) 0.0200 ( 3.1%) 0.0235 (
>> 3.6%) Preliminary module verification
>> ...
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 15:46:46 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 22:46:46 +0000
Subject: [LLVMbugs] [Bug 15647] New: Add .eh_frame support
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15647
Bug ID: 15647
Summary: Add .eh_frame support
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-dwarfdump
Assignee: unassignedbugs at nondot.org
Reporter: jcarter at mips.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10269
--> http://llvm.org/bugs/attachment.cgi?id=10269&action=edit
ELF object for dump
The .eh_frame section is very similar to the .debug_frame section.
This section describes exception handling. If this bug belongs in llvm-objdump,
please move it there. I could not find a bugzilla spot for it.
Basically we need a pretty printer output for exception handling info if for no
other reason, to create "make check" tests.
This is what gnu's readelf -wf dumps for my small test case:
svn: readelf -wf ../../j.o
Contents of the .eh_frame section:
00000000 0000001c 00000000 CIE
Version: 1
Augmentation: "zPLR"
Code alignment factor: 1
Data alignment factor: -8
Return address column: 31
Augmentation data: 00 00 00 00 00 00 00 00 00 00 00
DW_CFA_def_cfa: r29 ofs 0
00000020 0000002c 00000024 FDE cie=00000000 pc=00000000..0000007c
Augmentation data: 00 00 00 00 00 00 00 00
DW_CFA_advance_loc: 4 to 00000004
DW_CFA_def_cfa_offset: 16
DW_CFA_advance_loc: 8 to 0000000c
DW_CFA_offset: r31 at cfa-8
DW_CFA_offset: r28 at cfa-16
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
DW_CFA_nop
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 15:54:44 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 22:54:44 +0000
Subject: [LLVMbugs] [Bug 15649] New: clang-sa should warn when taking the
address of __block storage?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15649
Bug ID: 15649
Summary: clang-sa should warn when taking the address of
__block storage?
Product: clang
Version: 3.2
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: jim.correia at pobox.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10270
--> http://llvm.org/bugs/attachment.cgi?id=10270&action=edit
sample code
Build and run the attached sample code.
-performTest1 works correctly when built with MRR. (Ignoring the possibility
that it won't if the autorelease pool implementation details of
NSFileCoordinator change.)
It doesn't work correctly when built for ARC. The reason is that the code
that the compiler generates (-performTest2 is written similarly to the what
the method looks like with the compiler generated code) overwrites the value
of error set in the block.
-performTest3 doesn't work correctly (either for MRR or ARC) because we take
the address of __block storage, then copy the block, moving that value to the
heap. We writing to the stale value on the stack.
These are really two separate issues, but both avoidable if clang-sa issued a
warning that taking the address of __block storage is likely going to lead to
heartache.
xcrun clang NSFileCoordinatorErrorPattern.m -fobjc-arc -framework Foundation
xcrun clang --version
Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.3.0
Thread model: posix
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 15:56:04 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 01 Apr 2013 22:56:04 +0000
Subject: [LLVMbugs] [Bug 15650] New: Segfault when assigning value to a
reference
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15650
Bug ID: 15650
Summary: Segfault when assigning value to a reference
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: vk at vedantk.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10271
--> http://llvm.org/bugs/attachment.cgi?id=10271&action=edit
clang++ backtrace
clang++ attempted to generate a diagnostic for me on the line;
/* Right hand side is of type Vector3f. */
Vector3f& normal = loc.second.normalized();
It segfaulted while doing that. The full trace is attached in the file
"trace.txt". Here are the last few frames;
0 libLLVM-3.2.so 0x00007f34d25f40bf
1 libLLVM-3.2.so 0x00007f34d25f4529
2 libpthread.so.0 0x00007f34d189c1e0
3 libLLVM-3.2.so 0x00007f34d25bbb75 llvm::APInt::countLeadingZerosSlowCase()
const + 37
4 libLLVM-3.2.so 0x00007f34d25bbd5d llvm::APInt::EqualSlowCase(llvm::APInt
const&) const + 253
5 clang 0x0000000000ec22b9
6 clang 0x0000000000ec3113
7 clang 0x0000000000ec4380
clang::FormatASTNodeDiagnosticArgument(clang::DiagnosticsEngine::ArgumentKind,
long, char const*, unsigned int, char const*, unsigned int,
std::pair const*, unsigned int,
llvm::SmallVectorImpl&, void*, llvm::ArrayRef) + 240
8 clang 0x00000000010235fa clang::Diagnostic::FormatDiagnostic(char
const*, char const*, llvm::SmallVectorImpl&) const + 2570
9 clang 0x0000000000638787
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) + 87
10 clang 0x0000000001027f20
clang::DiagnosticIDs::EmitDiag(clang::DiagnosticsEngine&,
clang::DiagnosticIDs::Level) const + 48
11 clang 0x0000000001028175
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 389
12 clang 0x0000000001021d5c
clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) + 76
13 clang 0x000000000090133b
clang::Sema::EmitCurrentDiagnostic(unsigned int) + 683
clang++ was able to successfully compile the program when I removed the
reference from the left hand side;
Vector3f normal = loc.second.normalized();
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 18:46:56 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 01:46:56 +0000
Subject: [LLVMbugs] [Bug 15201] clang crashes when building tor
0.2.4.9-alpha universal
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15201
Rafael Ávila de Espíndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rafael.espindola at gmail.com
Resolution|--- |WORKSFORME
--- Comment #6 from Rafael Ávila de Espíndola ---
No reply since 2013-02-07. Please reopen with a .i if appropriate.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 20:57:21 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 03:57:21 +0000
Subject: [LLVMbugs] [Bug 15206] clang and gold plugin of 3.2 cannot generate
bc file for MySQL
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15206
Rafael Ávila de Espíndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rafael.espindola at gmail.com
Resolution|--- |INVALID
--- Comment #6 from Rafael Ávila de Espíndola ---
Closing per comment 5.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 22:40:47 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 05:40:47 +0000
Subject: [LLVMbugs] [Bug 15352] x86 crash: cannot select v4i32 = vselect
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15352
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Bill Wendling ---
ispc's bug is closed. Closing this now.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Mon Apr 1 22:43:12 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 05:43:12 +0000
Subject: [LLVMbugs] [Bug 15651] New: Clang fails to build a template that
uses constexpr.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15651
Bug ID: 15651
Summary: Clang fails to build a template that uses constexpr.
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: jujjyl at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10275
--> http://llvm.org/bugs/attachment.cgi?id=10275&action=edit
-E -generated test case.
I have built Clang 3.2 on Windows following these instructions:
https://github.com/kripken/emscripten/wiki/Using-Emscripten-from-Visual-Studio-2010
(step 4 on that page)
Using that to build libcxx on Windows for emscripten, I am bit by an issue
where a constexpr inside a template class is not working.
The same code builds ok on Clang 3.2 built on Linux or OSX (following
instructions at
https://github.com/kripken/emscripten/wiki/Getting-started-on-Mac-OS-X and
https://github.com/kripken/emscripten/wiki/Getting-Started-on-Ubuntu-12.10 )
A large test case is available at
https://dl.dropbox.com/u/40949268/emcc/bugs/preprocessed.cpp
Compiling on Windows with "clang++ -std=c++11 -m32 -U__i386__ -U__x86_64__
-U__i386 -U__x86_64 -Ui386 -Ux86_64 -U__SSE__ -U__SSE2__ -U__MMX__
-UX87_DOUBLE_ROUNDING -UHAVE_GCC_ASM_FOR_X87 -DEMSCRIPTEN -U__STRICT_ANSI__
-U__CYGWIN__ -D__STDC__ -Xclang -triple=i386-pc-linux-gnu
-D__IEEE_LITTLE_ENDIAN -fno-math-errno -fno-ms-compatibility -nostdinc
-nostdinc++ -Xclang -nobuiltininc -Xclang -nostdsysteminc -U__APPLE__
-U__linux__ -emit-llvm -c preprocessed.cpp"
gives the error
clang++: warning: argument unused during compilation: '-nostdinc++'
G:\Inttel-slave\win-emcc-incoming-tests\build\system\lib\libcxx\condition_variable.cpp:59:30:
error: constexpr variable 'ts_sec_max' must be initialized by a constant
expression
_LIBCPP_CONSTEXPR ts_sec ts_sec_max = numeric_limits::max();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
G:\Inttel-slave\win-emcc-incoming-tests\build\system\lib\libcxx\condition_variable.cpp:59:43:
note: undefined function 'max' cannot be used in a constant expression
_LIBCPP_CONSTEXPR ts_sec ts_sec_max = numeric_limits::max();
^
G:\Inttel-slave\win-emcc-incoming-tests\build\system\include\libcxx\limits:443:61:
note: declared here
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type max() _NOEXCEPT
{return __base::max();}
^
1 error generated.
A minimal failing example that exhibits the same problem is available at
https://dl.dropbox.com/u/40949268/emcc/bugs/constexpr_fail.cpp which fails as
follows: https://dl.dropbox.com/u/40949268/emcc/bugs/constexpr_fail.txt
The same problem is tracked in the emscripten issue tracker here:
https://github.com/kripken/emscripten/issues/1019
I also tried with the Clang trunk on Windows, which also fails in the same way:
https://dl.dropbox.com/u/40949268/emcc/bugs/constexpr_fail_clang33trunk.txt
Any ideas what could cause this kind of thing to work on linux and OSX builds
of Clang, but not on Windows builds of Clang?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 01:17:03 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 08:17:03 +0000
Subject: [LLVMbugs] [Bug 15440] llvm opt crash on csmith fuzz testcase
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15440
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |isanbard at gmail.com
Resolution|--- |FIXED
--- Comment #1 from Bill Wendling ---
This should be fixed here:
Sending lib/Transforms/IPO/GlobalOpt.cpp
Adding test/Transforms/GlobalOpt/crash-2.ll
Transmitting file data ..
Committed revision 178531.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 01:17:03 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 08:17:03 +0000
Subject: [LLVMbugs] [Bug 15465] Emscripten tracking bug
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15465
Bug 15465 depends on bug 15440, which changed state.
Bug 15440 Summary: llvm opt crash on csmith fuzz testcase
http://llvm.org/bugs/show_bug.cgi?id=15440
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 02:22:16 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 09:22:16 +0000
Subject: [LLVMbugs] [Bug 15653] New: HTTPS access to llvm.org gives 404 error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15653
Bug ID: 15653
Summary: HTTPS access to llvm.org gives 404 error
Product: Website
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: General Website
Assignee: unassignedbugs at nondot.org
Reporter: Matthieu.Moy at imag.fr
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I mistakenly accessed https://llvm.org/ (httpS instead of plain HTTP). I'd
expect either
* HTTPS working
* Redirection to the plain HTTP site
* at worse, no reply from server.
Instead, I got a 404 error:
Not Found
The requested URL / was not found on this server.
I guess there's a misconfigured virtual host in the apache config.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 04:14:11 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 11:14:11 +0000
Subject: [LLVMbugs] [Bug 15654] New: False positive: free() on a "constant"
malloc()-ed address
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15654
Bug ID: 15654
Summary: False positive: free() on a "constant" malloc()-ed
address
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: ranma42 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10276
--> http://llvm.org/bugs/attachment.cgi?id=10276&action=edit
Reduced testcase
Running the latest checker (checker-272 (2013-03-01 14:12:07) ) on the attached
code, it incorrectly reports:
test-free.c:16:2: warning: Argument to free() is a constant address (42), which
is not memory allocated by malloc()
Although the address can be proved to be equal to a compile-time known constant
in one of the branches, it has actually been allocated by malloc(), so it
should not be reported as a problem in this case.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 06:44:17 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 13:44:17 +0000
Subject: [LLVMbugs] [Bug 15642] clang -MMD doesn't escape dollar signs in
output
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15642
Benjamin Kramer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |benny.kra at gmail.com
Resolution|--- |FIXED
--- Comment #1 from Benjamin Kramer ---
Fixed in r178540.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 11:23:49 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 18:23:49 +0000
Subject: [LLVMbugs] [Bug 15655] New: libLLVMTarget.so is not linked with
-lLLVMCodeGet,
unresolved llvm::MachineInstr::hasPropertyInBundle when linking llvm-dis
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15655
Bug ID: 15655
Summary: libLLVMTarget.so is not linked with -lLLVMCodeGet,
unresolved llvm::MachineInstr::hasPropertyInBundle
when linking llvm-dis
Product: Build scripts
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: dilyan.palauzov at aegee.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I compile llvm-3.2 with cmake. On 'make' I get the message
[ 61%] Built target opt
[ 61%] Built target llvm-as
Linking CXX executable ../../bin/llvm-dis
../../lib/libLLVMTarget.so: undefined reference to
`llvm::MachineInstr::hasPropertyInBundle(unsigned int,
llvm::MachineInstr::QueryType) const'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/llvm-dis] Error 1
make[1]: *** [tools/llvm-dis/CMakeFiles/llvm-dis.dir/all] Error 2
make: *** [all] Error 2
Indeed, libLLVMCodeGen.so defines llvm::MachineInstr::hasPropertyInBundle:
nm -C lib/libLLVMCodeGen.so |grep hasPropertyInBundle
000000000027136c T llvm::MachineInstr::hasPropertyInBundle(unsigned int,
llvm::MachineInstr::QueryType) const
and libLLVMTarget.so has hasPropertyInBundle as undefined symbol:
nm -C lib/libLLVMTarget.so |grep hasPropertyInBundle
U llvm::MachineInstr::hasPropertyInBundle(unsigned int,
llvm::MachineInstr::QueryType) const
and libLLVMTarget.so does not depend on libLLVMCodeGen.so:
readelf -d lib/libLLVMTarget.so |grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libdl.so.2]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libLLVMCore.so]
0x0000000000000001 (NEEDED) Shared library: [libLLVMMC.so]
0x0000000000000001 (NEEDED) Shared library: [libLLVMSupport.so]
0x0000000000000001 (NEEDED) Shared library: [libLLVMObject.so]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
I noticed, that both libLLVMTarget.so and libLLVMCodeGen.so have a private
llvm::MachineInstr::hasProperty , but only libLLVMCodeGen has and exports
hasPropertyInBundle() .
So the error is one of:
-- libLLVMTarget.so is not linked with -lLLVMCodeGet, or
-- llvm-dis is not linked with -lLLVMCodeGet, in case llvm-dis does not use on
its own hasPropertyInBundle, but depends on libLLVMTarget
I can compile llvm-dis using Autoconf, but not with cmake.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 11:37:41 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 18:37:41 +0000
Subject: [LLVMbugs] [Bug 15630] PPC64: atomic store results in bus error if
type i8 is used
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15630
Bill Schmidt changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Bill Schmidt ---
Fixed in r178559.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 13:15:29 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 02 Apr 2013 20:15:29 +0000
Subject: [LLVMbugs] [Bug 15656] New: not substituting into some
instantiation-dependent (but not type-dependent) expressions inside sizeof
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15656
Bug ID: 15656
Summary: not substituting into some instantiation-dependent
(but not type-dependent) expressions inside sizeof
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
For instance:
template void f(int a[sizeof(static_cast( T() ))]);
void g() { f(0); }
We should reject this (both the value-initialization and the cast are
ill-formed), but we apparently don't even instantiate inside the sizeof's
operand (perhaps because it's not type-dependent?).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 17:34:16 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 00:34:16 +0000
Subject: [LLVMbugs] [Bug 15351] Illegal instruction with -march=native
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15351
Aaron Ballman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Aaron Ballman ---
Fixed in r178598
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 17:42:52 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 00:42:52 +0000
Subject: [LLVMbugs] [Bug 15657] New: s/__threaad_execute/__thread_execute/
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15657
Bug ID: 15657
Summary: s/__threaad_execute/__thread_execute/
Product: libc++
Version: 3.2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: hhinnant at apple.com
Reporter: arthur.j.odwyer at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Lines 331 and 343 in "include/thread" contain the identifier
"__threaad_execute", which was probably intended to be "__thread_execute".
Right now it's misspelled consistently everywhere, so there's no bug in the
code's behavior; it just looks dumb if you happen to be scanning headers and/or
reading stack traces.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 20:13:01 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 03:13:01 +0000
Subject: [LLVMbugs] [Bug 15351] Illegal instruction with -march=native
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15351
Aaron Ballman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #6 from Aaron Ballman ---
Reopening the bug -- my patch broke a gcc 4.6 builder that doesn't understand
xgetbv. I will reapply the patch once I've solved that issue.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Tue Apr 2 20:42:38 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 03:42:38 +0000
Subject: [LLVMbugs] [Bug 15491] Assertion `Result && "Could not evaluate
expression"' failed
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15491
Rafael Ávila de Espíndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rafael.espindola at gmail.com
Resolution|--- |FIXED
--- Comment #4 from Rafael Ávila de Espíndola ---
Fixed in r178609.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 06:06:07 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 13:06:07 +0000
Subject: [LLVMbugs] [Bug 15632] PPC64: UNREACHABLE executed in
LegalizeFloatTypes.cpp because of PPC128 float
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15632
Bill Schmidt changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Bill Schmidt ---
Fixed in r178639.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 06:08:03 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 13:08:03 +0000
Subject: [LLVMbugs] [Bug 15351] Illegal instruction with -march=native
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15351
Aaron Ballman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Aaron Ballman ---
Fixed in r178636; this time for sure!
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 09:07:05 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 16:07:05 +0000
Subject: [LLVMbugs] [Bug 15659] New: std::vector + emplaced
std::istringstream .seekg(0,
std::ios_base::beg) leads to missize and trash at end of the stream .str()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15659
Bug ID: 15659
Summary: std::vector + emplaced std::istringstream .seekg(0,
std::ios_base::beg) leads to missize and trash at end
of the stream .str()
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: All Bugs
Assignee: hhinnant at apple.com
Reporter: iamtakingiteasy at eientei.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10279
--> http://llvm.org/bugs/attachment.cgi?id=10279&action=edit
Example testcase
When std::istringstream emplaced into std::vector alongside with other
std::istringstream and then seeked to begening with .seekg(0,
std::ios_base::beg), it size becames largally bigger than original and end of
the stream filled with trash (probably, uninitalized or miss-accessed) data.
It is also known to work as expected on VC++ 2012.
The problem was reproduced with exact observed output by other person with
libc++.
Attaching a simple test-case; compiled with line
$ clang++ -std=c++11 -stdlib=libc++ tmp.cpp && ./a.out
Expected output:
3
MSG
3
31
hub started at [00 6b 8b 45 69]
31
Observed output:
3
MSG
3
31
hub started at [00 6b 8b 45 69]
593
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 11:19:37 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 18:19:37 +0000
Subject: [LLVMbugs] [Bug 15661] New: Concatenation with empty macro argument
does not prevent recursive expansion of macro
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15661
Bug ID: 15661
Summary: Concatenation with empty macro argument does not
prevent recursive expansion of macro
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: harald at gigawatt.nl
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Prompted by a bug report to GCC:
#define foo(x, y) x ## y
1
foo(f,oo(,))
2
foo(,foo(,))
3
foo(a,foo(,))
4
is preprocessed to
$ clang -std=c99 -E bug.c
# 1 "bug.c"
# 1 "bug.c" 1
# 1 "" 1
# 1 "" 3
# 152 "" 3
# 1 "" 1
# 1 "" 2
# 1 "bug.c" 2
1
foo(,)
2
3
afoo(,)
4
The expansion between 1 and 2 is correct, and shows that as the inner foo only
appears after concatenation, it is not expanded because it is seen in the
context of another foo macro expansion.
The expansion between 3 and 4 is correct, and shows that as the macro argument
is used as an operand to ##, it is not expanded.
The expansion between 2 and 3 is wrong, I believe: the inner foo should not be
expanded during argument substitution because it is used as an operand of ##,
and it should not be expanded after argument substitution because that happens
in the context of the outer foo macro expansion. There are no other moments
when it could be expanded.
This happens with Fedora 18's clang 3.2:
$ clang -v
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
Apologies if this is fixed already, but I cannot find a bugreport about this,
closed or open.
gcc and mcpp both give the expected output:
$ gcc -std=c99 -E bug.c
# 1 "bug.c"
# 1 ""
# 1 "bug.c"
1
foo(,)
2
foo(,)
3
afoo(,)
4
$ mcpp bug.c
#line 1 "/home/harald/bug.c"
1
foo (,)
2
foo (,)
3
afoo (,)
4
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 11:33:15 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 18:33:15 +0000
Subject: [LLVMbugs] [Bug 15661] Concatenation with empty macro argument does
not prevent recursive expansion of macro
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15661
Harald van Dijk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Harald van Dijk ---
...and of course an older report does show up after an additional attempt at
searching. That bug does not have a nested expansion of the same macro, but
this bug does seem like a special case of that one.
*** This bug has been marked as a duplicate of bug 12767 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 13:16:53 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 20:16:53 +0000
Subject: [LLVMbugs] [Bug 15662] New: incorrect dwarf information about
function arguments is produced in one case
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15662
Bug ID: 15662
Summary: incorrect dwarf information about function arguments
is produced in one case
Product: clang
Version: 3.2
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: avg at FreeBSD.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10282
--> http://llvm.org/bugs/attachment.cgi?id=10282&action=edit
pre-processed source code
Function signature in FreeBSD source code is:
void _sx_xunlock(struct sx *sx, const char *file, int line);
clang generated dwarf information (as reported by objdump -W) is:
<1><2c70>: Abbrev Number: 55 (DW_TAG_subprogram)
<2c71> DW_AT_name : (indirect string, offset: 0x1817): _sx_xunlock
<2c75> DW_AT_decl_file : 1
<2c76> DW_AT_decl_line : 373
<2c78> DW_AT_prototyped : 1
<2c78> DW_AT_external : 1
<2c78> DW_AT_inline : 1 (inlined)
<2><2c79>: Abbrev Number: 51 (DW_TAG_formal_parameter)
<2c7a> DW_AT_name : (indirect string, offset: 0xd061): line
<2c7e> DW_AT_decl_file : 1
<2c7f> DW_AT_decl_line : 373
<2c81> DW_AT_type :
<2><2c85>: Abbrev Number: 51 (DW_TAG_formal_parameter)
<2c86> DW_AT_name : (indirect string, offset: 0xd056): sx
<2c8a> DW_AT_decl_file : 1
<2c8b> DW_AT_decl_line : 373
<2c8d> DW_AT_type : <782c>
<2><2c91>: Abbrev Number: 51 (DW_TAG_formal_parameter)
<2c92> DW_AT_name : (indirect string, offset: 0xc67): file
<2c96> DW_AT_decl_file : 1
<2c97> DW_AT_decl_line : 373
<2c99> DW_AT_type : <32>
That is, order of arguments is recorded as 'line', 'sx', 'file'.
Please see the attached preprocessed file.
My compilation options were:
-pipe -fno-strict-aliasing -march=amdfam10 -std=c99 -g -O -Wall
-Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline
-Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions
-Wmissing-include-dirs
-fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality -nostdinc -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone
-mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-fstack-protector -Werror
clang is:
FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
The problem doesn't seem to be a common one.
Thus far, I have seen it only with this function (out of many inspected).
Please also see this thread for a preliminary discussion of this issue:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-April/028829.html
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 13:21:47 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 20:21:47 +0000
Subject: [LLVMbugs] [Bug 15659] std::vector + emplaced std::istringstream
.seekg(0,
std::ios_base::beg) leads to missize and trash at end of the stream .str()
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15659
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Howard Hinnant ---
Fix Committed revision 178690.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 13:29:59 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 20:29:59 +0000
Subject: [LLVMbugs] [Bug 15657] s/__threaad_execute/__thread_execute/
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15657
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Howard Hinnant ---
Committed revision 178691.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 14:27:06 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 21:27:06 +0000
Subject: [LLVMbugs] [Bug 15485] UNREACHABLE at IdentifierResolver.cpp:78
when friend-ing a using declaration
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15485
Stephen Lin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Stephen Lin ---
this is patched by r178698
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 14:40:20 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 03 Apr 2013 21:40:20 +0000
Subject: [LLVMbugs] [Bug 15663] New: GNU "a?:b" ternary operator with blocks
causes bus error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15663
Bug ID: 15663
Summary: GNU "a?:b" ternary operator with blocks causes bus
error
Product: clang
Version: trunk
Hardware: All
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: arthur.j.odwyer at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10283
--> http://llvm.org/bugs/attachment.cgi?id=10283&action=edit
Output of "clang test.c -v"
cat >test.c <
From bugzilla-daemon at llvm.org Wed Apr 3 17:05:18 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 00:05:18 +0000
Subject: [LLVMbugs] [Bug 15664] New: -frewrite-includes doesn't handle
Windows UTF-8 BOM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15664
Bug ID: 15664
Summary: -frewrite-includes doesn't handle Windows UTF-8 BOM
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: paul_robinson at playstation.sony.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
when Clang crashes, it will create a preprocessed file using
-frewrite-includes.
Unfortunately this does not strip byte-order marks from included headers.
(http://en.wikipedia.org/wiki/Byte_order_mark)
Attached bom.c is a regular text file, bom.h is encoded as UTF-8 with BOM.
C:\Data\scratch>clang -c bom.c
C:\Data\scratch>clang -E bom.c > bom-E.c
C:\Data\scratch>clang -c bom-E.c
C:\Data\scratch>clang -E -frewrite-includes bom.c > bom-E2.c
C:\Data\scratch>clang -c bom-E2.c
./bom.h:1:1: error: non-ASCII characters are not allowed outside of literals
and
identifiers
void foo();
^~~~~~~~
1 error generated.
C:\Data\scratch>clang --version
clang version 3.3 (178499)
Target: i686-pc-win32
Thread model: posix
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 18:03:57 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 01:03:57 +0000
Subject: [LLVMbugs] [Bug 15543] All binaries are linked with -rdynamic
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15543
Rafael Ávila de Espíndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Rafael Ávila de Espíndola ---
Fixed in 178725.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 18:35:20 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 01:35:20 +0000
Subject: [LLVMbugs] [Bug 15665] New: /Support/raw_ostream.cpp:326: void
llvm::raw_ostream::copy_to_buffer(const char *,
size_t): Assertion `Size <= size_t(OutBufEnd - OutBufCur) && "Buffer
overrun!"' failed/
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15665
Bug ID: 15665
Summary: /Support/raw_ostream.cpp:326: void
llvm::raw_ostream::copy_to_buffer(const char *,
size_t): Assertion `Size <= size_t(OutBufEnd -
OutBufCur) && "Buffer overrun!"' failed/
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: scherkus at chromium.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hit this while compiling Chromium code.
I rebased my git patch to trunk and I know there are syntax errors / it
shouldn't compile as-is, however it also shouldn't crash clang :)
../../media/filters/video_frame_stream.cc:59:7: error: no viable conversion
from 'Callback >, const class scoped_refptr &, const
class scoped_refptr &)>::Run
nableType, typename internal::FunctorTraits >, const class scoped_refpt
r &, const class scoped_refptr &)>::RunType, void (typename
internal::CallbackParamTraits
>::StorageType, type
name internal::CallbackParamTraits > >
>::StorageType)>::UnboundRunType>' to 'const
Callback, const scoped_refptr &)>'
base::Bind(&VideoFrameStream::OnDecoderSelected, weak_this_,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../base/callback.h:447:7: note: candidate constructor (the implicit copy
constructor) not viable: no known conversion from 'base::Callback >, const scoped_refptr &,
const scoped_refptr &)>::Runnabl
eType, typename internal::FunctorTraits >, const scoped_refptr &,
const scoped_refptr &)>::RunType, void (typename
internal::CallbackParamTraits >::StorageType,
typename internal::CallbackParamTraits > >
>::StorageType)>::UnboundRunType>' to 'const base::Callback >,
cons
t scoped_refptr &)> &' for 1st argument
class Callback : public internal::CallbackBase {
^
clang:
/usr/local/google/chrome/src/third_party/llvm/lib/Support/raw_ostream.cpp:326:
void llvm::raw_ostream::copy_to_buffer(const char *, size_t): Assertion `Size
<= size_t(OutBufEnd - OutBufCur) &&
"Buffer overrun!"' failed.
0 clang 0x0000000001e3f545 llvm::sys::PrintStackTrace(_IO_FILE*) + 37
1 clang 0x0000000001e3fa33
2 libc.so.6 0x00007fa560e944a0
3 libc.so.6 0x00007fa560e94425 gsignal + 53
4 libc.so.6 0x00007fa560e97b8b abort + 379
5 libc.so.6 0x00007fa560e8d0ee
6 libc.so.6 0x00007fa560e8d192
7 clang 0x0000000001e54a99 llvm::raw_ostream::write(char const*, unsigned
long) + 505
8 clang 0x00000000010ad3c3
clang::FormatASTNodeDiagnosticArgument(clang::DiagnosticsEngine::ArgumentKind,
long, char const*, unsigned int, char const*, unsigned int,
std::pair const*, unsigned int, llvm::SmallVectorImpl&,
void*, llvm::ArrayRef) + 3299
9 clang 0x00000000011fff86 clang::Diagnostic::FormatDiagnostic(char
const*, char const*, llvm::SmallVectorImpl&) const + 5366
10 clang 0x00000000006a4a30
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) + 96
11 clang 0x0000000001202c22
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 546
12 clang 0x00000000011fe944
clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool) + 84
13 clang 0x00000000009c10cd clang::Sema::EmitCurrentDiagnostic(unsigned
int) + 1005
14 clang 0x0000000000bb0796
clang::OverloadCandidateSet::NoteCandidates(clang::Sema&,
clang::OverloadCandidateDisplayKind, llvm::ArrayRef,
llvm::StringRef, clang::SourceLocation) +
8342
15 clang 0x0000000000b750dd
clang::InitializationSequence::Diagnose(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&, clang::Expr**, unsigned int) + 7661
16 clang 0x0000000000b702a3
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&, llvm::MutableArrayRef,
clang::Qua
lType*) + 339
17 clang 0x0000000000b76e39
clang::Sema::PerformCopyInitialization(clang::InitializedEntity const&,
clang::SourceLocation, clang::ActionResult, bool, bool) +
249
18 clang 0x0000000000aef086
clang::Sema::GatherArgumentsForCall(clang::SourceLocation,
clang::FunctionDecl*, clang::FunctionProtoType const*, unsigned int,
clang::Expr**, unsigned int, llvm::Smal
lVector&, clang::Sema::VariadicCallType, bool, bool) + 998
19 clang 0x0000000000aee763
clang::Sema::ConvertArgumentsForCall(clang::CallExpr*, clang::Expr*,
clang::FunctionDecl*, clang::FunctionProtoType const*, clang::Expr**, unsigned
int, clang::SourceL
ocation, bool) + 659
20 clang 0x0000000000bc46cd
clang::Sema::BuildCallToMemberFunction(clang::Scope*, clang::Expr*,
clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation) +
4301
21 clang 0x0000000000ae20d6 clang::Sema::ActOnCallExpr(clang::Scope*,
clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef,
clang::SourceLocation, clang::Expr*, bool) + 1302
22 clang 0x000000000096f266
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult) + 3174
23 clang 0x00000000009726d3 clang::Parser::ParseCastExpression(bool, bool,
bool&, clang::Parser::TypeCastState) + 11987
24 clang 0x000000000096d2d4
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 132
25 clang 0x000000000096d239
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
26 clang 0x000000000099a2bc clang::Parser::ParseExprStatement() + 44
27 clang 0x0000000000999e44
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange
&) + 2404
28 clang 0x0000000000999441
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector&, bool, clang::SourceLocation*) + 145
29 clang 0x00000000009a0431 clang::Parser::ParseCompoundStatementBody(bool)
+ 1729
30 clang 0x00000000009a1c4b
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 187
31 clang 0x000000000093db41
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
2065
32 clang 0x000000000094c99d
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1373
33 clang 0x000000000093d1d8
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 664
34 clang 0x000000000093cc50
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 416
35 clang 0x000000000093c1e0
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 2864
36 clang 0x000000000095d02a
clang::Parser::ParseInnerNamespace(std::vector >&, std::vector >&, std::vector >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&)
+ 474
37 clang 0x000000000095cbca clang::Parser::ParseNamespace(unsigned int,
clang::SourceLocation&, clang::SourceLocation) + 6026
38 clang 0x0000000000948d1f
clang::Parser::ParseDeclaration(llvm::SmallVector&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 415
39 clang 0x000000000093bd33
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1667
40 clang 0x000000000093b630
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 304
41 clang 0x0000000000937d66 clang::ParseAST(clang::Sema&, bool, bool) + 454
42 clang 0x00000000007f4a12 clang::CodeGenAction::ExecuteAction() + 194
43 clang 0x0000000000688c61 clang::FrontendAction::Execute() + 113
44 clang 0x0000000000669cfd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909
45 clang 0x0000000000651ab7
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2983
46 clang 0x00000000006487a5 cc1_main(char const**, char const**, char
const*, void*) + 693
47 clang 0x000000000064edeb main + 7035
48 libc.so.6 0x00007fa560e7f76d __libc_start_main + 237
49 clang 0x0000000000648429
Stack dump:
0. Program arguments:
/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
video_frame_strea
m.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -target-linker-version 2.20.1 -momit-l
eaf-frame-pointer -g -coverage-file
/src/chrome/src/out/Debug/obj/media/filters/media.video_frame_stream.o
-resource-dir
/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.3 -d
ependency-file obj/media/filters/media.video_frame_stream.o.d -MT
obj/media/filters/media.video_frame_stream.o -D _FILE_OFFSET_BITS=64 -D
USE_LINUX_BREAKPAD -D DISABLE_NACL -D CHROMIUM_BUILD -D COMPO
NENT_BUILD -D USE_DEFAULT_RENDER_THEME=1 -D USE_LIBJPEG_TURBO=1 -D USE_NSS=1 -D
ENABLE_ONE_CLICK_SIGNIN -D GTK_DISABLE_SINGLE_INCLUDES=1 -D ENABLE_REMOTING=1
-D ENABLE_WEBRTC=1 -D USE_PROPRIETARY_COD
ECS -D ENABLE_CONFIGURATION_POLICY -D ENABLE_INPUT_SPEECH -D
ENABLE_NOTIFICATIONS -D ENABLE_GPU=1 -D ENABLE_EGLIMAGE=1 -D
ENABLE_TASK_MANAGER=1 -D ENABLE_EXTENSIONS=1 -D ENABLE_PLUGIN_INSTALLATION=1
-D ENABLE_PLUGINS=1 -D ENABLE_SESSION_SERVICE=1 -D ENABLE_THEMES=1 -D
ENABLE_BACKGROUND=1 -D ENABLE_AUTOMATION=1 -D ENABLE_GOOGLE_NOW=1 -D
ENABLE_LANGUAGE_DETECTION=1 -D ENABLE_PRINTING=1 -D ENABLE_C
APTIVE_PORTAL_DETECTION=1 -D ENABLE_MANAGED_USERS=1 -D MEDIA_IMPLEMENTATION -D
USE_NEON -D USE_PULSEAUDIO -D DLOPEN_PULSEAUDIO -D GURL_DLL -D
SK_BUILD_NO_IMAGE_ENCODE -D SK_DEFERRED_CANVAS_USES_GPIPE=1 -D
GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h" -D GR_AGGRESSIVE_SHADER_OPTS=1
-D SK_ENABLE_INST_COUNT=0 -D SK_USE_POSIX_THREADS -D GR_DLL -D SKIA_DLL -D
U_USING_ICU_NAMESPACE=0 -D __STDC_CONST
ANT_MACROS -D __STDC_FORMAT_MACROS -D DYNAMIC_ANNOTATIONS_ENABLED=1 -D
WTF_USE_DYNAMIC_ANNOTATIONS=1 -D _DEBUG -D _REENTRANT -I
../../third_party/icu/public/common -I ../../third_party/icu/public/i18
n -I ../.. -I gen/pulse -I ../../net/third_party/nss/ssl -I ../../skia/config
-I ../../third_party/skia/src/core -I ../../third_party/skia/include/config -I
../../third_party/skia/include/core -I ../
../third_party/skia/include/effects -I ../../third_party/skia/include/pdf -I
../../third_party/skia/include/gpu -I ../../third_party/skia/include/gpu/gl -I
../../third_party/skia/include/pipe -I ../.
./third_party/skia/include/ports -I ../../third_party/skia/include/utils -I
../../skia/ext -I ../../third_party/opus/src/include -I gen/ffmpeg -I
../../third_party/ffmpeg/chromium/config/ChromeOS/lin
ux/x64 -I ../../third_party/ffmpeg -I ../../third_party/libvpx/source/libvpx -I
/usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I
/usr/include/nss -I /usr/include/nspr -I /usr/in
clude/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I
/usr/include/gtk-2.0 -I /usr/lib/x86_64-linux-gnu/gtk-2.0/include -I
/usr/include/atk-1.0 -I /usr/include/cairo -I /usr/include/gdk-pix
buf-2.0 -I /usr/include/pango-1.0 -I /usr/include/gio-unix-2.0/ -I
/usr/include/pixman-1 -I /usr/include/freetype2 -I /usr/include/libpng12
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/../../.
./../include/c++/4.6 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/b
ackward -internal-isystem /usr/local/include -internal-isystem
/src/chrome/src/third_party/llvm-build/Release+Asserts/bin/../lib/clang/3.3/include
-internal-externc-isystem /usr/include/x86_64-linux-
gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include
-O0 -Werror -Wall -Wno-unused-parameter -Wno-missing-field-initializers
-Wheader-hygiene -Wno-unused-function -Wno-char-s
ubscripts -Wno-unnamed-type-template-args -Wno-c++11-extensions
-Wno-covered-switch-default -Wstring-conversion -Wsign-compare
-fdeprecated-macro -fdebug-compilation-dir /src/chrome/src/out/Debug -fe
rror-limit 19 -fmessage-length 0 -fvisibility hidden
-fvisibility-inlines-hidden -pthread -stack-protector 1
-stack-protector-buffer-size 4 -mstackrealign -fno-rtti -fno-threadsafe-statics
-fobjc-run
time=gcc -fdiagnostics-show-option -fcolor-diagnostics -backend-option
-vectorize-loops -load
/src/chrome/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstru
cts.so -add-plugin find-bad-constructs -plugin-arg-find-bad-constructs
skip-virtuals-in-implementations -o
obj/media/filters/media.video_frame_stream.o -x c++
../../media/filters/video_frame_stream.c
c
1. ../../media/filters/video_frame_stream.cc:60:50: current parser token
')'
2. ../../media/filters/video_frame_stream.cc:18:1: parsing namespace
'media'
3. ../../media/filters/video_frame_stream.cc:36:58: parsing function body
'Initialize'
4. ../../media/filters/video_frame_stream.cc:36:58: in compound statement
('{}')
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Wed Apr 3 23:08:41 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 06:08:41 +0000
Subject: [LLVMbugs] [Bug 15666] New: clang does not know Red Hat Linux ARM
triplets armv7hl-redhat-linux and armv5tel-redhat-linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15666
Bug ID: 15666
Summary: clang does not know Red Hat Linux ARM triplets
armv7hl-redhat-linux and armv5tel-redhat-linux
Product: clang
Version: 3.2
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: petersen at redhat.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang on Fedora ARM does not work well because clang does not
recognize the Fedora ARM triplets and fallback to software floating point,
causing build failures like this:
clang: warning: unknown platform, assuming -mfloat-abi=soft
In file included from In file included from fsck_messages.c:25:
In file included from /usr/include/assert.hIn file included from :36cache.c:
:In file included from /usr/include/features.h24::
399In file included from :
/usr/include/errno.h:28/usr/include/gnu/stubs.h:
In file included from :/usr/include/features.h7::39911:
: fatal error: /usr/include/gnu/stubs.h'gnu/stubs-soft.h' file not found:
7:11: fatal error: 'gnu/stubs-soft.h' file not found
# include # include
:
See this Fedora ARM bug:
https://bugzilla.redhat.com/show_bug.cgi?id=803433
Earlier I tried a simple naive patch like:
--- llvm-3.2.src/tools/clang/lib/Driver/ToolChains.cpp~ 2012-12-17
00:59:27.000000000 +0900
+++ llvm-3.2.src/tools/clang/lib/Driver/ToolChains.cpp 2013-02-12
19:18:00.755164292 +0900
@@ -1054,10 +1054,12 @@
static const char *const ARMLibDirs[] = { "/lib" };
static const char *const ARMTriples[] = {
"arm-linux-gnueabi",
- "arm-linux-androideabi"
+ "arm-linux-androideabi",
+ "armv5tel-redhat-linux",
};
static const char *const ARMHFTriples[] = {
"arm-linux-gnueabihf",
+ "armv7hl-redhat-linux",
};
but it was not sufficient - maybe fixes are also needed to on the llvm side,
perhaps?
(Similarly ppc64-redhat-linux is also not supported.)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 07:17:59 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 14:17:59 +0000
Subject: [LLVMbugs] [Bug 15667] New: crash in search_n
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15667
Bug ID: 15667
Summary: crash in search_n
Product: libc++
Version: unspecified
Hardware: Macintosh
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: hhinnant at apple.com
Reporter: dlorenz at mac.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
See
http://stackoverflow.com/questions/15809929/is-this-crash-in-libc-stdsearch-n-a-bug
This code crashes in Xcode 4.6.1:
int main(int argc, char *argv[])
{
// Crashes
std::vector bs{1, 0, 0};
std::search_n(bs.begin(), bs.end(), 3, 1);
// Does not crash
std::vector bs{1, 0};
std::search_n(bs.begin(), bs.end(), 2, 1);
return 0;
}
The problem lies in __search_n, when a partial match is made, __first will be
beyond __s and the check for equality will fail, so there is no early exit;
eventually it will crash.
if (__first == __s) // return __last if no element matches __value_
needs to be replaced by
if (__first >= __s) // return __last if no element matches __value_
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 08:42:40 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 15:42:40 +0000
Subject: [LLVMbugs] [Bug 15667] crash in search_n
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15667
Howard Hinnant changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Howard Hinnant ---
Agreed, thanks for the fix. Committed revision 178764.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 09:38:49 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 16:38:49 +0000
Subject: [LLVMbugs] [Bug 15668] New: static, extern,
static function is rejected incorrectly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15668
Bug ID: 15668
Summary: static, extern, static function is rejected
incorrectly
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: bruce.r.stephens at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
This is presumably 3645, again (though with a function).
static void a(void);
extern void a();
static void a(void) {}
is rejected by clang, but not by gcc (and other compilers). The code appears to
be valid (the function is static).
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 10:00:01 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 17:00:01 +0000
Subject: [LLVMbugs] [Bug 15669] New: Enable JIT/MCJIT unit tests for targets
with JIT support.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15669
Bug ID: 15669
Summary: Enable JIT/MCJIT unit tests for targets with JIT
support.
Product: Test Suite
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: lit
Assignee: unassignedbugs at nondot.org
Reporter: jverma at codeaurora.org
CC: daniel at zuster.org, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This patch http://llvm.org/viewvc/llvm-project?view=revision&revision=178221
intended to disable MCJIT/JIT unittests only for the targets without JIT
support. However, it accidentally disabled them for all the targets when using
make.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 10:41:50 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 17:41:50 +0000
Subject: [LLVMbugs] [Bug 15668] static, extern,
static function is rejected incorrectly
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15668
Rafael Ávila de Espíndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 10:49:09 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 17:49:09 +0000
Subject: [LLVMbugs] [Bug 15672] New: Since r177724: AddressSanitizer CHECK
failed: llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:46
"((alloc_size > (1UL << (log-1)))) != (0)" (0x0, 0x0)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15672
Bug ID: 15672
Summary: Since r177724: AddressSanitizer CHECK failed:
llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:
46 "((alloc_size > (1UL << (log-1)))) != (0)" (0x0,
0x0)
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: emikulic at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10287
--> http://llvm.org/bugs/attachment.cgi?id=10287&action=edit
Test case that triggers AddressSanitizer CHECK-fail
Working:
$ clang++ -v
clang version 3.3 (trunk 177722)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang++ -g -fsanitize=address-full test2.cpp && ./a.out; echo $?
0
Not working:
$ clang++ -v
clang version 3.3 (trunk 177724)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ clang++ -g -fsanitize=address-full test2.cpp
$ ASAN_OPTIONS=abort_on_error=1 gdb a.out
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /tmp/a.out...done.
(gdb) run
Starting program: /tmp/a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
alloc_size 1 log 0
==20275==AddressSanitizer CHECK failed:
/home/emil/llvm/llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:46
"((alloc_size > (1UL << (log-1)))) != (0)" (0x0, 0x0)
#0 0x41ffcf (/tmp/a.out+0x41ffcf)
#1 0x4217d1 (/tmp/a.out+0x4217d1)
#2 0x41377b (/tmp/a.out+0x41377b)
#3 0x41339a (/tmp/a.out+0x41339a)
#4 0x4132f2 (/tmp/a.out+0x4132f2)
#5 0x429395 (/tmp/a.out+0x429395)
#6 0x428f09 (/tmp/a.out+0x428f09)
#7 0x428b4d (/tmp/a.out+0x428b4d)
#8 0x7ffff6eb2eac (/lib/x86_64-linux-gnu/libc-2.13.so+0x1eeac)
#9 0x4289dc (/tmp/a.out+0x4289dc)
Program received signal SIGABRT, Aborted.
0x00007ffff6ec6475 in *__GI_raise (sig=) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff6ec6475 in *__GI_raise (sig=)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff6ec96f0 in *__GI_abort () at abort.c:92
#2 0x00000000004249f6 in __sanitizer::Abort() ()
#3 0x000000000041ff98 in __asan::AsanDie() ()
#4 0x000000000042177f in __sanitizer::Die() ()
#5 0x000000000041ffff in __asan::AsanCheckFailed(char const*, int, char
const*, unsigned long long, unsigned long long) ()
#6 0x00000000004217d2 in __sanitizer::CheckFailed(char const*, int, char
const*, unsigned long long, unsigned long long) ()
#7 0x000000000041377c in __asan::FakeStack::ComputeSizeClass(unsigned long) ()
#8 0x000000000041339b in
__asan::FakeStack::DeallocateFrame(__asan::FakeFrame*) ()
#9 0x00000000004132f3 in __asan::FakeStack::AllocateStack(unsigned long,
unsigned long) ()
#10 0x0000000000429396 in c::c (
this=) at test2.cpp:27
#11 0x0000000000428f0a in a::b (this=0x7ffff438e020) at test2.cpp:33
#12 0x0000000000428b4e in main () at test2.cpp:38
(gdb)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 10:51:15 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 17:51:15 +0000
Subject: [LLVMbugs] [Bug 15673] New: poor diagnostic for deduction failure
in default template argument
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15673
Bug ID: 15673
Summary: poor diagnostic for deduction failure in default
template argument
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: zilla at kayari.org
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
The change made by
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120507/057436.html
is excellent, but only seems to work for old fashioned uses of enable_if, in
return types or function parameters.
My preferred style is to de-clutter the function declaration by using enable_if
in a template parameter with a default template argument e.g.
#include
template
struct a_trait : std::false_type { };
template::value>::type>
void foo() { }
int main()
{
foo();
}
Clang is not very helpful here:
b.cc:12:5: error: no matching function for call to 'foo'
foo();
^~~~~~~~
b.cc:8:6: note: candidate template ignored: couldn't infer template argument
'Requires'
void foo() { }
^
In an ideal world it would even recognise this is an equivalent use of
enable_if
#include
template
struct some_trait : std::false_type { };
template
struct a_pony
: std::enable_if::value>
{ };
template::type>
void foo() { }
int main()
{
foo();
}
And also recognise my preferred form of using enable_if constraints via alias
templates:
#include
template
struct some_trait : std::false_type { };
template
using unicorns
= typename std::enable_if::value>::type;
template>
void foo() { }
int main()
{
foo();
}
(unicorns might be simpler than a_pony since there's no other type involved,
just an alias for enable_if)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 11:59:09 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 18:59:09 +0000
Subject: [LLVMbugs] [Bug 14330] Clang does not pass the GDB 7.5 test suite
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=14330
Bug 14330 depends on bug 14332, which changed state.
Bug 14332 Summary: Implement -fsplit-stack
http://llvm.org/bugs/show_bug.cgi?id=14332
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 11:59:08 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 18:59:08 +0000
Subject: [LLVMbugs] [Bug 14332] Implement -fsplit-stack
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=14332
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Eric Christopher ---
It's wired up now and seems to work based on:
(gdb) b main
Breakpoint 1 at 0x400c20: file morestack.c, line 89.
(gdb) run
Starting program: /usr/local/google/home/echristo/tmp/a.out
Breakpoint 1, main () at morestack.c:89
89 {
(gdb) b marker_hit
Breakpoint 2 at 0x400e10: file morestack.c, line 47.
(gdb) break marker_miss
Breakpoint 3 at 0x400e90: file morestack.c, line 41.
(gdb) c
Continuing.
499: 0x7ffff64218d0 < 0x7ffff78028d0
Breakpoint 2, marker_hit () at morestack.c:47
47 {
(gdb) up 3000
#1004 0x0000000000400ce4 in main () at morestack.c:103
103 down (1000);
the bot appears to be skipping the test so I can't verify it via the testsuite,
but it seems to work for me. Going to mark it as resolved for now.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 13:48:16 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 20:48:16 +0000
Subject: [LLVMbugs] [Bug 8869] False positive with static analyzer and
struct initialization through a temporary.
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=8869
Juli Mallett changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Juli Mallett ---
This no longer seems to be broken with trunk; verified with r171214.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 14:08:04 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 21:08:04 +0000
Subject: [LLVMbugs] [Bug 15674] New: Broken switch when compiling with
optimizations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15674
Bug ID: 15674
Summary: Broken switch when compiling with optimizations
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm.org at halfy.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10288
--> http://llvm.org/bugs/attachment.cgi?id=10288&action=edit
Bug with switch statements.
The attached test case is extracted from a much larger production code. When
compiled and run, the expected output is:
> ./t
> 1 1 1 1
However, if built with any -O level above zero, it outputs:
> ./t
> 1 0 0 0
It seems that the ::memcpy() is confusing the optimizer. I'm not sure at what
stage this happens, so logging against clang.
I can work around this by rewriting the code like below, but this seems like a
rather critical bug.
---- 8< ----
void quantize(char *data, float *src, int nb_src, int vsize)
{
unsigned char *i8 = (unsigned char *)data;
switch(vsize)
{
case 4: i8[3] = (unsigned char)src[3];
case 3: i8[2] = (unsigned char)src[2];
i8[1] = (unsigned char)src[1];
case 1: i8[0] = (unsigned char)src[0];
}
}
---- 8< ----
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 14:16:50 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 21:16:50 +0000
Subject: [LLVMbugs] [Bug 15675] New: Empty macro arguments cause whitespace
to go missing
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15675
Bug ID: 15675
Summary: Empty macro arguments cause whitespace to go missing
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: harald at gigawatt.nl
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
#define A()
#define B(x)x
#define C(x) x
#define STR(x) STR_(x)
#define STR_(x) #x
STR([ A()])
STR([ B()])
STR([ C()])
is preprocessed to
"[ ]"
"[]"
"[]"
It should be "[ ]" for all three lines, which is what gcc and mcpp do.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 14:26:39 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 21:26:39 +0000
Subject: [LLVMbugs] [Bug 15676] New: clang segfaults when cross compiling
arch/arm/mm/context.c for ARM
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15676
Bug ID: 15676
Summary: clang segfaults when cross compiling
arch/arm/mm/context.c for ARM
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: behanw at converseincode.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10289
--> http://llvm.org/bugs/attachment.cgi?id=10289&action=edit
Code, backtrace, etc
When cross compiling the Linux kernel for ARM, clang segfaults when compiling
arch/arm/mm/context.c
Code to reproduce in attachment.
/home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/clang
-gcc-toolchain
/home/behanw/src/kernel/llvmlinux/arch/arm/toolchain/codesourcery/arm-2011.03/bin
-target arm-linux-gnueabi -include ./include/kconfig.h -D __KERNEL__ -D
__LINUX_ARM_ARCH__=7 -I ./include -O2 -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -Werror-implicit-function-declaration -Wno-format-security
-Wno-asm-operand-widths -Wno-unused-variable -Wno-tautological-compare
-Wdeclaration-after-statement -Wno-pointer-sign -fno-dwarf2-cfi-asm
-fno-dwarf-directory-asm -fdebug-compilation-dir -fwrapv -mstackrealign
-fno-builtin -fobjc-runtime=gcc -fno-common -fdiagnostics-show-option
-fcolor-diagnostics -c -o context.o context-parsed.c -static
clang-3.3: [0;1;35mwarning: [0m[1margument unused during compilation:
'-fdebug-compilation-dir -fwrapv' [-Wunused-command-line-argument][0m
0 clang-3.3 0x0000000001150712 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang-3.3 0x0000000001150399
2 libpthread.so.0 0x00002aaaaaee3cb0
3 clang-3.3 0x0000000000b2bcea
llvm::ARMInstPrinter::getRegisterName(unsigned int) + 10
4 clang-3.3 0x0000000000b2bd50
llvm::ARMInstPrinter::printRegName(llvm::raw_ostream&, unsigned int) const + 80
5 clang-3.3 0x0000000000b2f58c
llvm::ARMInstPrinter::printRegisterList(llvm::MCInst const*, unsigned int,
llvm::raw_ostream&) + 124
6 clang-3.3 0x0000000000b35e76
llvm::ARMInstPrinter::printInstruction(llvm::MCInst const*, llvm::raw_ostream&)
+ 7670
7 clang-3.3 0x0000000000b37501
llvm::ARMInstPrinter::printInst(llvm::MCInst const*, llvm::raw_ostream&,
llvm::StringRef) + 369
8 clang-3.3 0x00000000010aa89f
9 clang-3.3 0x00000000006ed187
10 clang-3.3 0x0000000000998a15 llvm::AsmPrinter::EmitFunctionBody() +
293
11 clang-3.3 0x00000000006e6f2f
12 clang-3.3 0x0000000001073bdf
llvm::FPPassManager::runOnFunction(llvm::Function&) + 607
13 clang-3.3 0x0000000001073c1b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
14 clang-3.3 0x00000000010737af
llvm::MPPassManager::runOnModule(llvm::Module&) + 575
15 clang-3.3 0x00000000010738fc llvm::PassManagerImpl::run(llvm::Module&)
+ 188
16 clang-3.3 0x00000000011729d4
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 3604
17 clang-3.3 0x00000000011700e2
18 clang-3.3 0x00000000013f9d2a clang::ParseAST(clang::Sema&, bool, bool)
+ 538
19 clang-3.3 0x0000000001349969 clang::FrontendAction::Execute() + 185
20 clang-3.3 0x000000000132bdf5
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293
21 clang-3.3 0x000000000115309a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1514
22 clang-3.3 0x00000000006d4e78 cc1_main(char const**, char const**, char
const*, void*) + 920
23 clang-3.3 0x00000000006c42c5 main + 8133
24 libc.so.6 0x00002aaaab92776d __libc_start_main + 237
25 clang-3.3 0x00000000006d2be5
Stack dump:
0. Program arguments:
/home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/clang-3.3 -cc1
-triple armv4t--linux-gnueabi -S -disable-free -disable-llvm-verifier
-main-file-name context-parsed.c -static-define -mrelocation-model static
-mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-abi aapcs-linux
-target-cpu arm7tdmi -mfloat-abi soft -target-feature +soft-float-abi
-coverage-file
/home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-60H0nV.s
-resource-dir
/home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3
-include ./include/kconfig.h -D __KERNEL__ -D __LINUX_ARM_ARCH__=7 -I ./include
-internal-isystem /usr/local/include -internal-isystem
/home/behanw/src/kernel/llvmlinux/toolchain/clang/install/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-Werror-implicit-function-declaration -Wno-format-security
-Wno-asm-operand-widths -Wno-unused-variable -Wno-tautological-compare
-Wdeclaration-after-statement -Wno-pointer-sign -fno-dwarf2-cfi-asm
-fno-dwarf-directory-asm -fdebug-compilation-dir
/home/behanw/src/kernel/llvmlinux/test/unit/ARM64bit -ferror-limit 19
-fmessage-length 0 -backend-option -force-align-stack -mstackrealign
-fno-builtin -fno-signed-char -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fno-common -fdiagnostics-show-option
-fcolor-diagnostics -backend-option -vectorize-loops -o
/home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-60H0nV.s
-x c context-parsed.c
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'context-parsed.c'.
4. Running pass 'ARM Assembly / Object Emitter' on function
'@check_and_switch_context'
clang-3.3: [0;1;31merror: [0m[1munable to execute command: Segmentation
fault (core dumped)[0m
clang-3.3: [0;1;31merror: [0m[1mclang frontend command failed due to signal
(use -v to see invocation)[0m
clang version 3.3
Target: arm--linux-gnueabi
Thread model: posix
clang-3.3: [0;1;30mnote: [0mdiagnostic msg: PLEASE submit a bug report to
and include the crash backtrace, preprocessed source, and associated run
script.[0m
clang-3.3: [0;1;30mnote: [0mdiagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:[0m
clang-3.3: [0;1;30mnote: [0mdiagnostic msg:
/home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-GdtCr3.c[0m
clang-3.3: [0;1;30mnote: [0mdiagnostic msg:
/home/behanw/src/kernel/llvmlinux/targets/vexpress/tmp/context-parsed-GdtCr3.sh[0m
clang-3.3: [0;1;30mnote: [0mdiagnostic msg:
********************[0m
make: *** [testcase] Error 254
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 14:31:23 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 21:31:23 +0000
Subject: [LLVMbugs] [Bug 15677] New: Some invalid code causes a crash
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15677
Bug ID: 15677
Summary: Some invalid code causes a crash
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: nacitar at ubercpp.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10290
--> http://llvm.org/bugs/attachment.cgi?id=10290&action=edit
Core file, preprocessed cpp and run script.
The error here is I redeclared RetEnableIf (meant to name the second one
RetDisableIf)... just playing around with some template stuff. Anyway, here's
the crash information.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 14:46:57 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 21:46:57 +0000
Subject: [LLVMbugs] [Bug 15678] New: -Wformat-nonliteral is inconsistent
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15678
Bug ID: 15678
Summary: -Wformat-nonliteral is inconsistent
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: bjhomer+llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code generates a warning under -Wformat-nonliteral:
NSString *template = NSLocalizedString(@"My name is %@", nil);
NSString *str = [NSString stringWithFormat:template, @"John"];
However, the following code does not:
NSString *str = [NSString stringWithFormat:NSLocalizedString(@"My name is
%@", nil), @"John"];
Note that in neither case is the parameter actually a string literal; the
return value of NSLocalizedString() is determined at runtime in either case.
I suspect that it should really warn in both cases, though that means I'll
probably have to turn off this warning for my project.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 16:05:15 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 23:05:15 +0000
Subject: [LLVMbugs] [Bug 15679] New: static analyser reports null
dereference when it clearly cannot happen
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15679
Bug ID: 15679
Summary: static analyser reports null dereference when it
clearly cannot happen
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: gryzman at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10291
--> http://llvm.org/bugs/attachment.cgi?id=10291&action=edit
formatting.c from postgresql project
checker-272 on mac
fe-lobj.c from postgresql got flagged (attaching the result file and source
file).
But it clearly is visible in the same source file, that the condition could
never work out ! Clearly clang is unable to figure it out, and throws in loads
of false positives.
In short this looks like so:
void some_funct(struct f *foo)
{
if (foo==null || foo->bar==0)
{
if (initialise_f(foo) < 0)
return;
}
// this gets flagged as dereference of null pointer if foo is null
do_something(foo->bar);
}
int initialise_f(struct f* foo)
{
if (!foo)
{
return -1'
}
// ....
}
so in the example above (and attached code, look at function lo_tell64 and
lo_initialise) - this condition (dereference of null pointer) cannot happen.
Yet clang insists it does. After dozens of reports like that - and wasted time
on my pard - I decided to bug it here.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 16:55:31 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 23:55:31 +0000
Subject: [LLVMbugs] [Bug 11174] #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=11174
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Michael Spencer ---
Fixed in r178816 for x86.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 16:56:03 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 04 Apr 2013 23:56:03 +0000
Subject: [LLVMbugs] [Bug 12730] libstdc++ std::thread,
when compiled with clang, "pure virtual method called"
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=12730
Michael Spencer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
CC| |bigcheesegs at gmail.com
Resolution|--- |FIXED
--- Comment #12 from Michael Spencer ---
Fixed in r178816.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 18:05:36 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 01:05:36 +0000
Subject: [LLVMbugs] [Bug 15680] New: Clang does not find identifiers
imported into namespaces by "using namespace"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15680
Bug ID: 15680
Summary: Clang does not find identifiers imported into
namespaces by "using namespace"
Product: clang
Version: trunk
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: M8R-9yw8a5 at mailinator.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
1. Source code (x.cpp):
namespace A { void f() { } }
namespace B { using namespace A; void g(); }
void B::g() { f(); }
2. Command line:
clang++ -c x.cpp
3. Output:
error: use of undeclared identifier 'f'; did you mean 'f'?
4. Notes:
This FEATURE(TM) was introduced somewhere in the revision range
(177716..178453] (at r177716, Clang compiles the code).
This is either a bug or a standard-conformant behavior change, but in the
latter case, diagnostics messages should be more explanatory: the compiler
should direct the user to 'A::f()'.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 18:53:33 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 01:53:33 +0000
Subject: [LLVMbugs] [Bug 15681] New: clangg++ error building Chromium on
Linux
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15681
Bug ID: 15681
Summary: clangg++ error building Chromium on Linux
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: johnb316 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10292
--> http://llvm.org/bugs/attachment.cgi?id=10292&action=edit
Preprocessed source code to build abort.o
I tried to build Chromium 26.0.1410.43 from source on 64-bit Slackware Linux
using clang as the C++ compiler. After the Chromium build script downloaded a
prebuilt clang, the following errors were thrown as the build started:
http://llvm.org/bugs/ CXX(target)
out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/abort.o
CXX(target)
out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/elf_mem_image.o
clang: warning: argument unused during compilation: '-fno-ipa-cp'
clang: warning: argument unused during compilation: '-fno-ipa-cp'
/usr/bin/clang: symbol lookup error:
/tmp/buildpkgs/chromium/chromium-26.0.1410.43/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so:
undefined symbol:
_ZNK5clang13SourceManager14getPresumedLocENS_14SourceLocationEb
clang: error: unable to execute command: Program could not be executed
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-slackware-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
/usr/bin/clang: symbol lookup error:
/tmp/buildpkgs/chromium/chromium-26.0.1410.43/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so:
undefined symbol:
_ZNK5clang13SourceManager14getPresumedLocENS_14SourceLocationEb
clang: error: unable to execute command: Program could not be executed
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-slackware-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/abort-t94ibA.cpp
clang: note: diagnostic msg: /tmp/abort-t94ibA.sh
clang: note: diagnostic msg:
********************
make: ***
[out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/abort.o]
Error 255
make: *** Waiting for unfinished jobs....
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/elf_mem_image-SILiKz.cpp
clang: note: diagnostic msg: /tmp/elf_mem_image-SILiKz.sh
clang: note: diagnostic msg:
********************
make: ***
[out/Release/obj.target/allocator/third_party/tcmalloc/chromium/src/base/elf_mem_image.o]
Error 255
As requested, the files listed in the error message are attached.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Thu Apr 4 19:32:20 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 02:32:20 +0000
Subject: [LLVMbugs] [Bug 15681] clangg++ error building Chromium on Linux
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15681
johnb316 at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #6 from johnb316 at gmail.com ---
If that's the case, then the issue is probably with the prebuilt clang that the
tools/clang/scripts/update.sh script in Chromium pulls from llvm.org. That
clang was most likely built against Ubuntu, which I don't use (I use
Slackware64-current, FWIMBW). I suppose I'll have to tinker with the Chromium
gypi files so that the build uses the clang that Slackware supplies.
Given these circumstances, I'm going to mark this bug as RESOLVED and INVALID.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 00:21:58 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 07:21:58 +0000
Subject: [LLVMbugs] [Bug 15682] New: Clang crash when compiling a simple C++
program
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15682
Bug ID: 15682
Summary: Clang crash when compiling a simple C++ program
Product: libraries
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: kan.liu.229 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10296
--> http://llvm.org/bugs/attachment.cgi?id=10296&action=edit
diagnostic msg
****************************The source code*******************************
#include
void merge(int* array, int* tmparray, int left, int center, int right) {
int pos, lpos = left, rpos=center + 1;
for (pos = left; pos < right; pos++) {
if (lpos <= center && (rpos > right || array[lpos] < array[rpos])) {
tmparray[pos] = array[lpos++];
} else {
tmparray[pos] = array[rpos++];
}
}
for (int i = left; i <= right; i++) {
array[i] = tmparray[i];
}
}
void m_sort(int* array, int* tmparray, int left, int right) {
if (left < right) {
int center = (right - left) / 2 + left;
m_sort(array, tmparray, left, center);
m_sort(array, tmparray, center + 1, right);
merge(array, tmparray, left, center, right);
}
}
void merge_sort(int* array, size_t size) {
if (size <= 1)
return ;
int *tmparray = new int[size];
m_sort(array, tmparray, 0, size - 1);
delete[] tmparray;
}
int main() {
int tt[] = {1, 10, 4, 2, 6, 6, 10, 0};
merge_sort(tt, sizeof(tt));
for (int i = 0; i < sizeof(tt); i++)
printf("%d ", tt[i]);
return 0;
}
**************************** Result *******************************
lk at lk-laptop:~$ clang++ test.cpp
0 libLLVM-3.2.so.1 0x00007f08d59ae00f
1 libLLVM-3.2.so.1 0x00007f08d59ae5d1
2 libpthread.so.0 0x00007f08d49ffcb0
3 libLLVM-3.2.so.1 0x00007f08d58182f9
llvm::FastISel::getRegForValue(llvm::Value const*) + 41
4 libLLVM-3.2.so.1 0x00007f08d5a9a976
5 libLLVM-3.2.so.1 0x00007f08d581c1a8
llvm::FastISel::SelectInstruction(llvm::Instruction const*) + 216
6 libLLVM-3.2.so.1 0x00007f08d5938cac
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1196
7 libLLVM-3.2.so.1 0x00007f08d5939ee8
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680
8 libLLVM-3.2.so.1 0x00007f08d53d72f5
llvm::FPPassManager::runOnFunction(llvm::Function&) + 501
9 libLLVM-3.2.so.1 0x00007f08d53d7393
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
10 libLLVM-3.2.so.1 0x00007f08d53d6fa9
llvm::MPPassManager::runOnModule(llvm::Module&) + 457
11 libLLVM-3.2.so.1 0x00007f08d53d70bf
llvm::PassManagerImpl::run(llvm::Module&) + 111
12 clang 0x000000000071312a
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4618
13 clang 0x0000000000710ab0
14 clang 0x000000000085221e clang::ParseAST(clang::Sema&, bool,
bool) + 382
15 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97
16 clang 0x00000000005c593d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285
17 clang 0x00000000005ae49a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338
18 clang 0x00000000005a7fb0 cc1_main(char const**, char const**,
char const*, void*) + 1168
19 clang 0x00000000005a69c0 main + 672
20 libc.so.6 0x00007f08d413c76d __libc_start_main + 237
21 clang 0x00000000005a79d9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.2/include -internal-isystem
/usr/include/clang/3.2/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir /home/lk -ferror-limit 19
-fmessage-length 80 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/test-BtMMsu.o -x c++ test.cpp
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'test.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z10merge_sortPim'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.2-1~exp5ubuntu1~precise1 (tags/RELEASE_32/final) (based
on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test-L9gloJ.cpp
clang: note: diagnostic msg: /tmp/test-L9gloJ.sh
clang: note: diagnostic msg:
********************
lk at lk-laptop:~$ clang tes
tesseract-android-tools/ test.cpp
lk at lk-laptop:~$ clang test.cpp
0 libLLVM-3.2.so.1 0x00007f483550b00f
1 libLLVM-3.2.so.1 0x00007f483550b5d1
2 libpthread.so.0 0x00007f483455ccb0
3 libLLVM-3.2.so.1 0x00007f48353752f9
llvm::FastISel::getRegForValue(llvm::Value const*) + 41
4 libLLVM-3.2.so.1 0x00007f48355f7976
5 libLLVM-3.2.so.1 0x00007f48353791a8
llvm::FastISel::SelectInstruction(llvm::Instruction const*) + 216
6 libLLVM-3.2.so.1 0x00007f4835495cac
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1196
7 libLLVM-3.2.so.1 0x00007f4835496ee8
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680
8 libLLVM-3.2.so.1 0x00007f4834f342f5
llvm::FPPassManager::runOnFunction(llvm::Function&) + 501
9 libLLVM-3.2.so.1 0x00007f4834f34393
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
10 libLLVM-3.2.so.1 0x00007f4834f33fa9
llvm::MPPassManager::runOnModule(llvm::Module&) + 457
11 libLLVM-3.2.so.1 0x00007f4834f340bf
llvm::PassManagerImpl::run(llvm::Module&) + 111
12 clang 0x000000000071312a
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4618
13 clang 0x0000000000710ab0
14 clang 0x000000000085221e clang::ParseAST(clang::Sema&, bool,
bool) + 382
15 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97
16 clang 0x00000000005c593d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285
17 clang 0x00000000005ae49a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338
18 clang 0x00000000005a7fb0 cc1_main(char const**, char const**,
char const*, void*) + 1168
19 clang 0x00000000005a69c0 main + 672
20 libc.so.6 0x00007f4833c9976d __libc_start_main + 237
21 clang 0x00000000005a79d9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.2/include -internal-isystem
/usr/include/clang/3.2/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir /home/lk -ferror-limit 19
-fmessage-length 80 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/test-2X7dZs.o -x c++ test.cpp
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'test.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z10merge_sortPim'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.2-1~exp5ubuntu1~precise1 (tags/RELEASE_32/final) (based
on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test-IlGsSE.cpp
clang: note: diagnostic msg: /tmp/test-IlGsSE.sh
clang: note: diagnostic msg:
********************
lk at lk-laptop:~$ ls
20080408145541789.jpg miniSQL
98ATautocomplete node
addyosmani-backbonejs-gallery-a3f51f7 node_modules
android nodepad
android-ndk-r8b NVIDIA_CUDA-5.0_Samples
android-sdk-linux output4.jpeg
ants output5.jpeg
AntsGame output6.jpeg
%APPDATA% patpat
Bespin Transparent Blur.bespin python
builddir Qt5.0.1
cc racket
cloudcity setup
cmpt379 square.cu
cmpt470 Sublime Text 2
cpp tesseract-android-tools
cs344 test.cpp
cuda-5.0 thawte.pem
cuda_5.0.35_linux_64_ubuntu11.10-1.run tmp
eclipse vim_works
fixit reader vuforia-sdk-android-2-0-31
glass.despin wps-office_8.1.0.3718~b1_x86
hs_err_pid7048.log 下载
images.jpg 公共的
jpeg-encoder 图片
Jpeg_essential 文档
Jpeg_essential_build 桌面
Jpeg_essential_release 模板
js 视频
koala-contactlist 音乐
mezzofanti_java
lk at lk-laptop:~$ cd miniSQL/
lk at lk-laptop:~/miniSQL$ ls
bplustree.cpp logger.cpp nfa.cpp README.md scanner.hpp test
bplustree.hpp logger.hpp nfa.hpp scanner.cpp tags token.hpp
lk at lk-laptop:~/miniSQL$ clang++ logger.
clang: error: no such file or directory: 'logger.'
clang: error: no input files
lk at lk-laptop:~/miniSQL$ clang++ logger.cpp
logger.cpp:9:3: warning: 'auto' type specifier is a C++11 extension
[-Wc++11-extensions]
auto it = loggers.find(name);
^
logger.cpp:33:8: warning: 'auto' type specifier is a C++11 extension
[-Wc++11-extensions]
for (auto i = loggers.begin(); i != loggers.end(); i++)
^
2 warnings generated.
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 0 has invalid symbol index 10
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 1 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 4 has invalid symbol index 10
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 5 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 6 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 7 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 8 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 9 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 10 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 11 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 12 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 13 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 14 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 15 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 16 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 17 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 18 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 19 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info):
relocation 20 has invalid symbol index 19
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
lk at lk-laptop:~/miniSQL$ cd ..
lk at lk-laptop:~$ clang++ test.cpp
0 libLLVM-3.2.so.1 0x00007fe971ca500f
1 libLLVM-3.2.so.1 0x00007fe971ca55d1
2 libpthread.so.0 0x00007fe970cf6cb0
3 libLLVM-3.2.so.1 0x00007fe971b0f2f9
llvm::FastISel::getRegForValue(llvm::Value const*) + 41
4 libLLVM-3.2.so.1 0x00007fe971d91976
5 libLLVM-3.2.so.1 0x00007fe971b131a8
llvm::FastISel::SelectInstruction(llvm::Instruction const*) + 216
6 libLLVM-3.2.so.1 0x00007fe971c2fcac
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1196
7 libLLVM-3.2.so.1 0x00007fe971c30ee8
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 680
8 libLLVM-3.2.so.1 0x00007fe9716ce2f5
llvm::FPPassManager::runOnFunction(llvm::Function&) + 501
9 libLLVM-3.2.so.1 0x00007fe9716ce393
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
10 libLLVM-3.2.so.1 0x00007fe9716cdfa9
llvm::MPPassManager::runOnModule(llvm::Module&) + 457
11 libLLVM-3.2.so.1 0x00007fe9716ce0bf
llvm::PassManagerImpl::run(llvm::Module&) + 111
12 clang 0x000000000071312a
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 4618
13 clang 0x0000000000710ab0
14 clang 0x000000000085221e clang::ParseAST(clang::Sema&, bool,
bool) + 382
15 clang 0x00000000005e3501 clang::FrontendAction::Execute() + 97
16 clang 0x00000000005c593d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 285
17 clang 0x00000000005ae49a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1338
18 clang 0x00000000005a7fb0 cc1_main(char const**, char const**,
char const*, void*) + 1168
19 clang 0x00000000005a69c0 main + 672
20 libc.so.6 0x00007fe97043376d __libc_start_main + 237
21 clang 0x00000000005a79d9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
test.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.2
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/4.6/backward
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/x86_64-linux-gnu
-internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.6/../../../../include/c++/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.2/include -internal-isystem
/usr/include/clang/3.2/include/ -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include
-fdeprecated-macro -fdebug-compilation-dir /home/lk -ferror-limit 19
-fmessage-length 80 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/test-jGN2uR.o -x c++ test.cpp
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'test.cpp'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_Z10merge_sortPim'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.2-1~exp5ubuntu1~precise1 (tags/RELEASE_32/final) (based
on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test-UD9iFl.cpp
clang: note: diagnostic msg: /tmp/test-UD9iFl.sh
clang: note: diagnostic msg:
********************
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 00:31:00 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 07:31:00 +0000
Subject: [LLVMbugs] [Bug 15516] simultaneous diagnostics from sanitizers get
intermixed
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15516
Alexey Samsonov changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Alexey Samsonov ---
Should be fixed by r178853.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 01:14:49 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 08:14:49 +0000
Subject: [LLVMbugs] [Bug 15683] New: pointer arithmetic with empty struct
compiles into division by zero
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15683
Bug ID: 15683
Summary: pointer arithmetic with empty struct compiles into
division by zero
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: jari at kirma.fi
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Unoptimized compilation of following program emits code that includes division
by zero (apparently clang considers struct to be zero-sized, and doesn't handle
the special case?):
#include
int main(int argc, char **argv)
{
struct {} x[2];
volatile ptrdiff_t y = 1+x-x;
return 0;
}
This issue occurs with -O0, but not with -O1.
Generated assembler below.
.file "struct_test.c"
.text
.globl main
.align 16, 0x90
.type main, at function
main: # @main
.cfi_startproc
# BB#0:
pushq %rbp
.Ltmp2:
.cfi_def_cfa_offset 16
.Ltmp3:
.cfi_offset %rbp, -16
movq %rsp, %rbp
.Ltmp4:
.cfi_def_cfa_register %rbp
movl $0, %eax
movl $0, -4(%rbp)
movl %edi, -8(%rbp)
movq %rsi, -16(%rbp)
xorl %esi, %esi
xorl %edx, %edx
movl %eax, -36(%rbp) # 4-byte Spill
movq %rsi, %rax
divq %rsi
movq %rax, -32(%rbp)
movl -36(%rbp), %eax # 4-byte Reload
popq %rbp
ret
.Ltmp5:
.size main, .Ltmp5-main
.cfi_endproc
.section ".note.GNU-stack","", at progbits
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 02:44:02 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 09:44:02 +0000
Subject: [LLVMbugs] [Bug 15684] New: recent clang "hangs" when scanning
FreeBSD source code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15684
Bug ID: 15684
Summary: recent clang "hangs" when scanning FreeBSD source code
Product: clang
Version: trunk
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: uspoerlein at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hey, I'm running scans using ToT clang against FreeBSD's head 3 times a week,
results can be seen here: http://scan.freebsd.your.org/freebsd-head/
These run in a VM with 4 cores or so and usually take around 14-18h, as you can
see from the logfile timestamps (the runs start at midnight). The last run that
was ok used r177463 from March 20th, the next run using r177833 from March 24th
did not finish, I had to kill a couple of clang processes that we using up over
100h of hours of CPU.
The current run has 3 hanging clang instances and doesn't progress at all, top
snapshot:
% top -b 5
last pid: 24911; load averages: 3.06, 3.02, 3.00 up 587+16:11:43
09:46:16
84 processes: 5 running, 78 sleeping, 1 stopped
Mem: 213M Active, 7978M Inact, 1152M Wired, 233M Cache, 1237M Buf, 2306M Free
Swap: 4093M Total, 7848K Used, 4086M Free
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
90516 uqs 1 129 10 64740K 55444K CPU3 3 127.4H 100.00% clang
1496 uqs 1 129 10 64740K 55508K CPU2 2 126.4H 100.00% clang
83115 uqs 1 128 10 48252K 39256K CPU1 0 127.7H 96.97% clang
853 root 1 44 0 23236K 1284K select 1 683:00 0.00%
vmtoolsd-real
1114 root 1 44 0 29312K 9492K select 1 386:26 0.00% bsnmpd
two of these are hung on scanning the nvi sources (these haven't changed in
quite some time)
% lsof|grep "clang.*freebsd-head"
clang 1496 uqs cwd VDIR 0,82 2560
2756720 /usr/obj/data/src/freebsd-head/usr.bin/vi
clang 1496 uqs txt VREG 0,82 24421
72763 /data/src/freebsd-head/contrib/nvi/vi/vs_refresh.c
clang 1496 uqs txt VREG 0,82 23106
3358307 /data/src/freebsd-head/sys/sys/cdefs.h
clang 1496 uqs txt VREG 0,82 16774
2735768 /usr/obj/data/src/freebsd-head/tmp/usr/include/stdio.h
clang 83115 uqs cwd VDIR 0,82 512
2734730 /usr/obj/data/src/freebsd-head/sys/boot/userboot/ficl
clang 83115 uqs txt VREG 0,82 23106
3358307 /data/src/freebsd-head/sys/sys/cdefs.h
clang 83115 uqs txt VREG 0,82 21844
3452753 /data/src/freebsd-head/sys/sys/queue.h
clang 83115 uqs txt VREG 0,82 42931
358839 /data/src/freebsd-head/sys/boot/ficl/ficl.h
clang 83115 uqs 3r VREG 0,82 4717
2735729 /usr/obj/data/src/freebsd-head/tmp/usr/include/limits.h
clang 90516 uqs cwd VDIR 0,82 2560
3226716
/usr/obj/data/src/freebsd-head/rescue/rescue/data/src/freebsd-head/usr.bin/vi
clang 90516 uqs txt VREG 0,82 24421
72763 /data/src/freebsd-head/contrib/nvi/vi/vs_refresh.c
clang 90516 uqs txt VREG 0,82 23106
3358307 /data/src/freebsd-head/sys/sys/cdefs.h
clang 90516 uqs txt VREG 0,82 16774
2735768 /usr/obj/data/src/freebsd-head/tmp/usr/include/stdio.h
What's a quick way to get a preprocessed file out of that?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 02:44:08 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 09:44:08 +0000
Subject: [LLVMbugs] [Bug 15683] pointer arithmetic with empty struct
compiles into division by zero
In-Reply-To:
References:
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15683
Jari Kirma changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jari Kirma ---
After a second of thought and comment from a colleague, closing as invalid:
structure with no named members is undefined behavior.
Maybe this undefined behavior could emit a warning. Or is there such a warning
already?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 04:20:39 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 11:20:39 +0000
Subject: [LLVMbugs] [Bug 15685] New: OpenCL 'char' is not signed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15685
Bug ID: 15685
Summary: OpenCL 'char' is not signed
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: kalle.raiskila at nokia.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When compiling OpenCL, the signedness of 'char' is platform dependant (as in
C), whereas the OpenCL spec (§6.1.1) defines 'char' to be signed.
check with e.g.:
echo "int foo=(char)0xff;" | clang -x cl - -o - -emit-llvm -S
which compiles on PowerPC to:
@foo = global i32 255, align 4
but, on Intel:
@foo = global i32 -1, align 4
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 05:46:51 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 12:46:51 +0000
Subject: [LLVMbugs] [Bug 15686] New: Class constructor default argument
fails to compile
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=15686
Bug ID: 15686
Summary: Class constructor default argument fails to compile
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: MyAdEss at seznam.cz
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
If a class constructor has an argument that takes a default value that itself
is a template of more than one parameter, it fails to compile.
Example of a full program:
http://ideone.com/mv9Qco
/***************************************************/
#include
using namespace std;
/* a function template */
template
A f(B) { return A(); }
/* a class template */
template
class X {};
template
class Y
{
/** All these constructors fail to compile **/
Y(X = X())
//Y(A (*arg)(B) = f)
//Y(std::function arg = f)
{ }
};
int main()
{ return 0; }
/***************************************************/
It compiles successfully on GCC and MSVC.
Compiler error:
clangtest.cpp:17:19: error: expected ')'
Y(X = X())
^
clangtest.cpp:17:4: note: to match this '('
Y(X = X())
^
clangtest.cpp:17:17: error: expected '>'
Y(X = X())
^
2 errors generated.
--Floop
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From bugzilla-daemon at llvm.org Fri Apr 5 08:44:02 2013
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 05 Apr 2013 15:44:02 +0000
Subject: [LLVMbugs] [Bug 15687] New: clang fails to build kernel/bound.c
(Linux Kernel build)
Message-ID: