From bugzilla-daemon at llvm.org Thu Apr 1 07:35:03 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 07:35:03 -0500 (CDT) Subject: [LLVMbugs] [Bug 6755] New: CMake configured make install misses DiagnosticCommonKinds.inc Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6755 Summary: CMake configured make install misses DiagnosticCommonKinds.inc Product: clang Version: trunk Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs AssignedTo: unassignedclangbugs at nondot.org ReportedBy: vr086731 at studenti.univr.it CC: llvmbugs at cs.uiuc.edu I am using this rep: http://llvm.org/svn/llvm-project/llvm/branches/release_27 and I have configured the build with cmake. The problem is that the file clang/Basic/DiagnosticCommonKinds.inc is not copied by 'make install'. This file is needed to compile applications that include clang headers, which otherwise fail with the message like the following: include/clang/Basic/Diagnostic.h:63:49: error: clang/Basic/DiagnosticCommonKinds.inc: No such file or directory -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 11:55:27 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 11:55:27 -0500 (CDT) Subject: [LLVMbugs] [Bug 6755] CMake configured make install misses DiagnosticCommonKinds.inc In-Reply-To: References: Message-ID: <20100401165527.853F72A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6755 Chris Lattner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Chris Lattner 2010-04-01 11:55:27 CDT --- krj fixed this in r 100105 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 12:09:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 12:09:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 6756] New: exception object not destructed Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6756 Summary: exception object not destructed Product: clang Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: hhinnant at apple.com CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com This test should pass: #include #include struct A { static int constructed; int data_; explicit A(int data = 0) : data_(data) { ++constructed; } ~A() { --constructed; } A(const A& a) : data_(a.data_) { ++constructed; } private: A& operator=(const A&); }; int A::constructed = 0; int main() { try { throw A(5); assert(false); } catch (A& a) { assert(a.data_ == 5); assert(A::constructed == 1); } printf("J: %d\n", A::constructed); assert(A::constructed == 0); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 12:54:54 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 12:54:54 -0500 (CDT) Subject: [LLVMbugs] [Bug 6757] New: ternary operator: incompatible operand types ('Foo const' and 'Foo') Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6757 Summary: ternary operator: incompatible operand types ('Foo const' and 'Foo') Product: clang Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: evan at chromium.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com Created an attachment (id=4621) --> (http://llvm.org/bugs/attachment.cgi?id=4621) test case as found in bug This came up in WebCore. Simplified test case follows, will also attach. I believe this may have worked in the past, which would make this a regression. But it's also possible the code in WebCore changed since the last time I compiled this area. build with clang++ -c test.cc test.cc:12:16: error: incompatible operand types ('Foo const' and 'Foo') Foo x = true ? Bar() : Foo(); ^ ~~~~~ ~~~~~ struct Foo { }; struct Bar { operator const Foo&() const; }; void f() { Foo x = true ? Bar() : Foo(); } -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 13:33:14 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 13:33:14 -0500 (CDT) Subject: [LLVMbugs] [Bug 6563] accepts invalid template argument In-Reply-To: References: Message-ID: <20100401183314.5F5382A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6563 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-04-01 13:33:14 CDT --- Fixed in r100125. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 13:33:23 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 13:33:23 -0500 (CDT) Subject: [LLVMbugs] [Bug 6749] clang allows references to fulfill reference non-type parameters In-Reply-To: References: Message-ID: <20100401183323.67C892A6C124@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6749 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Douglas Gregor 2010-04-01 13:33:23 CDT --- Fixed in r100125. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 15:42:31 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 15:42:31 -0500 (CDT) Subject: [LLVMbugs] [Bug 6758] New: JIT doesn't work on PowerPC: relocation fails Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6758 Summary: JIT doesn't work on PowerPC: relocation fails Product: new-bugs Version: unspecified Platform: Macintosh URL: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1921 OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: new bugs AssignedTo: unassignedbugs at nondot.org ReportedBy: edwintorok at gmail.com CC: llvmbugs at cs.uiuc.edu On Darwin 9.8.0 Power Macintosh powerpc: The JIT aborts with this error: Assertion failed: (ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out of range!"), function relocate, file llvm/lib/Target/PowerPC/PPCJITInfo.cpp, line 399. backtrace: Program received signal SIGABRT, Aborted. 0x96191b50 in __kill () (gdb) bt #0 0x96191b50 in __kill () #1 0x9622cc00 in abort () #2 0x9621fc10 in __assert_rtn () #3 0x012bf304 in llvm::PPCJITInfo::relocate () #4 0x00e0c904 in (anonymous namespace)::JITEmitter::finishFunction () #5 0x01286634 in (anonymous namespace)::PPCCodeEmitter::runOnMachineFunction () #6 0x00fd61b8 in llvm::FPPassManager::runOnFunction () #7 0x00fd63e8 in llvm::FunctionPassManagerImpl::run () #8 0x00fd66ac in llvm::FunctionPassManager::run () #9 0x00dfc590 in llvm::JIT::runJITOnFunctionUnlocked () #10 0x00dfd670 in llvm::JIT::getPointerToFunction () This happens when the JIT client (ClamAV) has allocated some memory, and then tries to use the JIT, it doesn't happen when only trying to use the JIT. If needed I can probably write up a testcase for LLI that allocates some memory first, and then tries to JIT, but I think the abort message is pretty clear about what the problem is. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 16:04:08 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 16:04:08 -0500 (CDT) Subject: [LLVMbugs] [Bug 6759] New: "friend class" implies forward declaration "class"? Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6759 Summary: "friend class" implies forward declaration "class"? Product: clang Version: trunk Platform: Macintosh OS/Version: All Status: NEW Severity: normal Priority: P Component: C++ AssignedTo: unassignedclangbugs at nondot.org ReportedBy: jdd at efn.org CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com The following example will compile in g++ but not in clang++: #include /* If you uncomment the forward declaration, then this compiles OK (but g++ does not require the forward declaration): */ // class FooImpl; class Foo_connection { private: friend class FooImpl; Foo_connection(FooImpl&); }; int main() { int i = 1; printf("%d \n",++i); } ----- clang++ testcase.cc -o testcase testcase.cc:9:31: error: expected ')' Foo_connection(FooImpl&); ^ -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 16:48:20 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 16:48:20 -0500 (CDT) Subject: [LLVMbugs] [Bug 6759] "friend class" implies forward declaration "class"? In-Reply-To: References: Message-ID: <20100401214820.33D2E2A6C12E@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6759 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor 2010-04-01 16:48:19 CDT --- Clang is correct here, per C+ [11.4]p9: For a friend class declaration, if there is no prior declaration, the class that is specified belongs to the innermost enclosing non-class scope, but if it is subsequently referenced, its name is not found by name lookup until a matching declaration is provided in the innermost enclosing nonclass scope. GCC is wrong to make FooImpl visible in the friend class declaration. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 17:21:58 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 17:21:58 -0500 (CDT) Subject: [LLVMbugs] [Bug 6760] New: The -globalopt pass assertions on the given code Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6760 Summary: The -globalopt pass assertions on the given code Product: libraries Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Interprocedural Optimizations AssignedTo: unassignedbugs at nondot.org ReportedBy: criswell at uiuc.edu CC: llvmbugs at cs.uiuc.edu Created an attachment (id=4622) --> (http://llvm.org/bugs/attachment.cgi?id=4622) Reduced test case from 164.gzip The Global Variable optimization pass asserts when run on the attached LLVM bitcode. It occurs when using the release_27 branch. opt -f -o /dev/null -globalopt bugpoint-reduced-simplified.bc Assertion failed: (GEPI->getNumOperands() >= 3 && isa(GEPI->getOperand(2)) && "Unexpected GEPI!"), function RewriteHeapSROALoadUser, file /Users/criswell/src/llvm27/lib/Transforms/IPO/GlobalOpt.cpp, line 1197. 0 opt 0x000000010041c557 PrintStackTrace(void*) + 38 1 opt 0x000000010041ca4e SignalHandler(int) + 336 2 libSystem.B.dylib 0x00007fff83053eaa _sigtramp + 26 3 libSystem.B.dylib 0x00000001013f5000 _sigtramp + 2117734768 4 libSystem.B.dylib 0x00007fff830cfe74 __pthread_markcancel + 0 5 opt 0x0000000100083a33 RewriteHeapSROALoadUser(llvm::Instruction*, llvm::DenseMap >, llvm::DenseMapInfo, llvm::DenseMapInfo > > >&, std::vector, std::allocator > >&) + 574 6 opt 0x0000000100083dfc RewriteUsesOfLoadForHeapSRoA(llvm::LoadInst*, llvm::DenseMap >, llvm::DenseMapInfo, llvm::DenseMapInfo > > >&, std::vector, std::allocator > >&) + 109 7 opt 0x0000000100084c3c PerformHeapAllocSRoA(llvm::GlobalVariable*, llvm::CallInst*, llvm::Value*, llvm::TargetData*) + 2457 8 opt 0x0000000100085e5d TryToOptimizeStoreOfMallocToGlobal(llvm::GlobalVariable*, llvm::CallInst*, llvm::Type const*, llvm::ilist_iterator&, llvm::TargetData*) + 1173 9 opt 0x000000010008660d OptimizeOnceStoredGlobal(llvm::GlobalVariable*, llvm::Value*, llvm::ilist_iterator&, llvm::TargetData*) + 309 10 opt 0x0000000100087bcd (anonymous namespace)::GlobalOpt::ProcessInternalGlobal(llvm::GlobalVariable*, llvm::ilist_iterator&) + 2081 11 opt 0x0000000100087dbe (anonymous namespace)::GlobalOpt::OptimizeGlobalVars(llvm::Module&) + 360 12 opt 0x0000000100087e75 (anonymous namespace)::GlobalOpt::runOnModule(llvm::Module&) + 137 13 opt 0x00000001003ab5fe llvm::MPPassManager::runOnModule(llvm::Module&) + 376 14 opt 0x00000001003ad4d1 llvm::PassManagerImpl::run(llvm::Module&) + 111 15 opt 0x00000001003ad533 llvm::PassManager::run(llvm::Module&) + 33 16 opt 0x000000010006090f main + 3130 17 opt 0x00000001000568cc start + 52 18 opt 0x0000000000000006 start + 4294612846 -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 17:46:39 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 17:46:39 -0500 (CDT) Subject: [LLVMbugs] [Bug 6759] Poor diagnostic with missing type name in constructor parameter In-Reply-To: References: Message-ID: <20100401224639.D6E832A6C12D@llvm.org> http://llvm.org/bugs/show_bug.cgi?id=6759 Douglas Gregor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |quality-of-implementation Status|RESOLVED |REOPENED Resolution|INVALID | Summary|"friend class" implies |Poor diagnostic with |forward declaration |missing type name in |"class"? |constructor parameter -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. From bugzilla-daemon at llvm.org Thu Apr 1 18:34:02 2010 From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org) Date: Thu, 1 Apr 2010 18:34:02 -0500 (CDT) Subject: [LLVMbugs] [Bug 6761] New: optimizer generates an infinite loop with floating-point counter. Message-ID: http://llvm.org/bugs/show_bug.cgi?id=6761 Summary: optimizer generates an infinite loop with floating-point counter. Product: libraries Version: trunk Platform: Macintosh OS/Version: MacOS X Status: NEW Severity: normal Priority: P Component: Loop Optimizer AssignedTo: unassignedbugs at nondot.org ReportedBy: nanki at dotswitch.net CC: llvmbugs at cs.uiuc.edu I tested the following code which prints 'H' 10 times. -- h.ll ; ModuleID = '' define void @main() nounwind { ;