[llvm-bugs] [Bug 27754] New: constructor cannot be redeclared (r269398)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 16 03:41:57 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27754

            Bug ID: 27754
           Summary: constructor cannot be redeclared (r269398)
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vvasilev at cern.ch
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

error: constructor cannot be redeclared
template <typename _Tp, _Tp> struct integral_constant {};
                                    ^
includes/home/vvassilev/workspace/root/obj/include/RConversionRuleParser.h:2:39:
note: previous implicit declaration is here
template < typename _Tp, _Tp > struct integral_constant
                                      ^
rootcling_tmp.cxx:1:10: fatal error: could not build module 'TMetaUtils.h'
#include "TMetaUtils.h"
 ~~~~~~~~^~~~~~~~~~~~~~
2 errors generated.


(gdb) b 'clang::TextDiagnosticPrinter::HandleDiagnostic'
Breakpoint 1 at 0x16c11d0
(gdb) r
Starting program: /home/vvassilev/workspace/llvm-git/inst_release/bin/clang-3.9
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name RooGaussModel.cxx -mrelocation-model pic -pic-level 2
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -v
-dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -coverage-file
/home/vvassilev/workspace/root/obj/roofit/roofit/src/RooGaussModel.o
-resource-dir
/home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0
-dependency-file roofit/roofit/src/RooGaussModel.d -MT
roofit/roofit/src/RooGaussModel.o -MP -I include -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
-internal-isystem /usr/local/include -internal-isystem
/home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-Wshadow -Wall -W -Woverloaded-virtual -Wno-deprecated-declarations -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /home/vvassilev/workspace/root/obj
-ferror-limit 19 -fmessage-length 127 -pthread -fmodules -fimplicit-module-maps
-fmodules-cache-path=/home/vvassilev/workspace/root/obj/include/pcms/
-fmodule-map-file=/home/vvassilev/workspace/root/obj/include/module.modulemap
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o
roofit/roofit/src/RooGaussModel.o -x c++
/home/vvassilev/workspace/root/src/roofit/roofit/src/RooGaussModel.cxx
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9"
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
 /usr/local/include
 /home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
[New Thread 0x7ffff5e50700 (LWP 10966)]
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9"
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
 /usr/local/include
 /home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
[New Thread 0x7ffff5614700 (LWP 10967)]
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9"
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
 /usr/local/include
 /home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
[New Thread 0x7ffff4def700 (LWP 10968)]
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9"
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
 /usr/local/include
 /home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
[New Thread 0x7fffe6962700 (LWP 10969)]
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9"
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
 /usr/local/include
 /home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
[New Thread 0x7fffdffff700 (LWP 10970)]
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9"
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
 /usr/local/include
 /home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
[New Thread 0x7fffdf7fe700 (LWP 10971)]
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory
"/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9"
#include "..." search starts here:
#include <...> search starts here:
 include
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9
 /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/backward
 /usr/local/include
 /home/vvassilev/workspace/llvm-git/inst_release/bin/../lib/clang/3.9.0/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
[Switching to Thread 0x7fffdf7fe700 (LWP 10971)]

Breakpoint 1, 0x00000000016c11d0 in
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) ()
(gdb) bt
#0  0x00000000016c11d0 in
clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level,
clang::Diagnostic const&) ()
#1  0x0000000001358064 in
clang::DiagnosticIDs::EmitDiag(clang::DiagnosticsEngine&,
clang::DiagnosticIDs::Level) const ()
#2  0x00000000013595be in
clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const ()
#3  0x0000000001350f6c in clang::DiagnosticsEngine::EmitCurrentDiagnostic(bool)
()
#4  0x0000000001ed94ae in clang::Sema::EmitCurrentDiagnostic(unsigned int) ()
#5  0x0000000001ea62e7 in
clang::Sema::SemaDiagnosticBuilder::~SemaDiagnosticBuilder() ()
#6  0x0000000001f97d87 in clang::Sema::MergeFunctionDecl(clang::FunctionDecl*,
clang::NamedDecl*&, clang::Scope*, bool) ()
#7  0x0000000001f989e6 in clang::Sema::CheckFunctionDeclaration(clang::Scope*,
clang::FunctionDecl*, clang::LookupResult&, bool) ()
#8  0x0000000001fb8d02 in
clang::Sema::CheckImplicitSpecialMemberDeclaration(clang::Scope*,
clang::FunctionDecl*) ()
#9  0x0000000001ff2810 in
clang::Sema::DeclareImplicitDefaultConstructor(clang::CXXRecordDecl*) ()
#10 0x000000000212e050 in
clang::Sema::LookupSpecialMember(clang::CXXRecordDecl*,
clang::Sema::CXXSpecialMember, bool, bool, bool, bool, bool) ()
#11 0x000000000212e342 in
clang::Sema::LookupDefaultConstructor(clang::CXXRecordDecl*) ()
#12 0x0000000002107ccb in TryValueInitialization(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
clang::InitializationSequence&, clang::InitListExpr*) ()
#13 0x000000000210d344 in
clang::InitializationSequence::InitializeFrom(clang::Sema&,
clang::InitializedEntity const&, clang::InitializationKind const&,
llvm::MutableArrayRef<clang::Expr*>, bool, bool) ()
#14 0x00000000020aac37 in
clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) ()
#15 0x00000000020ab100 in
clang::Sema::ActOnCXXTypeConstructExpr(clang::OpaquePtr<clang::QualType>,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation) ()
---Type <return> to continue, or q <return> to quit---
#16 0x0000000001d364ed in
clang::Parser::ParseCXXTypeConstructExpression(clang::DeclSpec const&) ()
#17 0x0000000001d2aba0 in clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) ()
#18 0x0000000001d2c50d in clang::Parser::ParseCastExpression(bool, bool,
clang::Parser::TypeCastState) ()
#19 0x0000000001d2a59b in clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) ()
#20 0x0000000001d2c50d in clang::Parser::ParseCastExpression(bool, bool,
clang::Parser::TypeCastState) ()
#21 0x0000000001d2c599 in
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) ()
#22 0x0000000001d2ddf8 in
clang::Parser::ParseExpressionList(llvm::SmallVectorImpl<clang::Expr*>&,
llvm::SmallVectorImpl<clang::SourceLocation>&, std::function<void ()>) ()
#23 0x0000000001d2e7bf in
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) ()
#24 0x0000000001d29e88 in clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) ()
#25 0x0000000001d2c50d in clang::Parser::ParseCastExpression(bool, bool,
clang::Parser::TypeCastState) ()
#26 0x0000000001d2c599 in
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) ()
#27 0x0000000001d2c619 in
clang::Parser::ParseExpression(clang::Parser::TypeCastState) ()
#28 0x0000000001d60393 in clang::Parser::ParseExprStatement() ()
#29 0x0000000001d60e1f in
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&) ()
#30 0x0000000001d6123d in
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*) ()
#31 0x0000000001d613be in clang::Parser::ParseStatement(clang::SourceLocation*,
bool) ()
#32 0x0000000001d622d4 in
clang::Parser::ParseIfStatement(clang::SourceLocation*) ()
#33 0x0000000001d60a5b in
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedContsructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&) ()
#34 0x0000000001d6123d in
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::Allo---Type <return> to continue, or q <return> to
quit---
wedContsructsKind, clang::SourceLocation*) ()
#35 0x0000000001d644e9 in clang::Parser::ParseCompoundStatementBody(bool) ()
#36 0x0000000001d666ea in
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) ()
#37 0x0000000001cf8e75 in
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) ()
#38 0x0000000001cf8bce in
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) ()
#39 0x0000000001d25771 in
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) ()
#40 0x0000000001d26936 in
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) ()
#41 0x0000000001d0c84c in
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) ()
#42 0x0000000001d72b0d in
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) ()
#43 0x0000000001d740d7 in
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) ()
#44 0x0000000001d743fa in
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) ()
#45 0x0000000001d176f4 in clang::Parser::ParseDeclaration(unsigned int,
clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) ()
#46 0x0000000001cf6251 in
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) ()
#47 0x0000000001d1fc7a in
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLoc---Type <return> to continue, or q <return> to
quit---
ation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) ()
#48 0x0000000001d204e8 in clang::Parser::ParseNamespace(unsigned int,
clang::SourceLocation&, clang::SourceLocation) ()
#49 0x0000000001d17754 in clang::Parser::ParseDeclaration(unsigned int,
clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) ()
#50 0x0000000001cf6251 in
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) ()
#51 0x0000000001cf69f0 in
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) ()
#52 0x0000000001cef933 in clang::ParseAST(clang::Sema&, bool, bool) ()
#53 0x0000000001689d46 in clang::FrontendAction::Execute() ()
#54 0x0000000001665a3e in
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) ()
#55 0x00000000028a5e4f in
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) ()
#56 0x00000000028a5f04 in RunSafelyOnThread_Dispatch(void*) ()
#57 0x000000000125a42d in ExecuteOnThread_Dispatch(void*) ()
#58 0x00007ffff79c0182 in start_thread (arg=0x7fffdf7fe700) at
pthread_create.c:312
#59 0x00007ffff6caa47d in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160516/8ef7df0d/attachment-0001.html>


More information about the llvm-bugs mailing list