[LLVMbugs] [Bug 16211] New: rvalue references with template static initializers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 3 09:52:41 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16211

            Bug ID: 16211
           Summary: rvalue references with template static initializers
           Product: clang
           Version: 3.2
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alexey.frolov at intel.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10622
  --> http://llvm.org/bugs/attachment.cgi?id=10622&action=edit
reprocessed source file and run script

$ clang++ -c   -O2  -std=c++0x source.cpp

0  clang++           0x000000010fd1f925 PrintStackTrace(void*) + 37
1  clang++           0x000000010fd1fdc4 SignalHandler(int) + 564
2  libsystem_c.dylib 0x00007fff8fa658ea _sigtramp + 26
3  libsystem_c.dylib 0x00007f97a34fc080 _sigtramp + 18446743627362822064
4  clang++           0x000000010fd1fb76 abort + 22
5  clang++           0x000000010fd1fb51 __assert_rtn + 81
6  clang++           0x000000010f328992
clang::Expr::EvaluateKnownConstInt(clang::ASTContext const&) const + 210
7  clang++           0x000000010f31a84a
clang::Expr::isNullPointerConstant(clang::ASTContext&,
clang::Expr::NullPointerConstantValueDependence) const + 1242
8  clang++           0x000000010ec5ca7b (anonymous
namespace)::CheckImplicitConversion(clang::Sema&, clang::Expr*,
clang::QualType, clang::SourceLocation, bool*) + 2075
9  clang++           0x000000010ec5796f (anonymous
namespace)::AnalyzeImplicitConversions(clang::Sema&, clang::Expr*,
clang::SourceLocation) + 703
10 clang++           0x000000010ec57bed (anonymous
namespace)::AnalyzeImplicitConversions(clang::Sema&, clang::Expr*,
clang::SourceLocation) + 1341
11 clang++           0x000000010ecbdc17
clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool, bool) +
3799
12 clang++           0x000000010eece5bd
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*) + 1581
13 clang++           0x000000010eed9382
clang::Sema::InstantiateStaticDataMemberDefinition(clang::SourceLocation,
clang::VarDecl*, bool, bool) + 1570
14 clang++           0x000000010eefa389
clang::Sema::RequireCompleteExprType(clang::Expr*, clang::Sema::TypeDiagnoser&)
+ 345
15 clang++           0x000000010ed49a87
clang::Sema::CheckUnaryExprOrTypeTraitOperand(clang::Expr*,
clang::UnaryExprOrTypeTrait) + 279
16 clang++           0x000000010ed4a717
clang::Sema::CreateUnaryExprOrTypeTraitExpr(clang::Expr*,
clang::SourceLocation, clang::UnaryExprOrTypeTrait) + 439
17 clang++           0x000000010ed4aaaf
clang::Sema::ActOnUnaryExprOrTypeTraitExpr(clang::SourceLocation,
clang::UnaryExprOrTypeTrait, bool, void*, clang::SourceRange const&) + 95
18 clang++           0x000000010eb98c0a
clang::Parser::ParseUnaryExprOrTypeTraitExpression() + 730
19 clang++           0x000000010eb929ca
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 1786
20 clang++           0x000000010eb8fa77
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 135
21 clang++           0x000000010eb73673
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 1971
22 clang++           0x000000010eb71da8
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1656
23 clang++           0x000000010ebe6ad7
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 679
24 clang++           0x000000010ebe652f
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 351
25 clang++           0x000000010ebe5a17
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3223
26 clang++           0x000000010ebe4d04
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 308
27 clang++           0x000000010eb64a16 clang::ParseAST(clang::Sema&, bool,
bool) + 438
28 clang++           0x000000010eb26468 clang::CodeGenAction::ExecuteAction() +
520
29 clang++           0x000000010e91415d clang::FrontendAction::Execute() + 109
30 clang++           0x000000010e8f4c5d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957
31 clang++           0x000000010e8b968d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3645
32 clang++           0x000000010e8b0f15 cc1_main(char const**, char const**,
char const*, void*) + 725
33 clang++           0x000000010e8b5c25 main + 3077
34 clang++           0x000000010e8b0c34 start + 52
Stack dump:
0.      Program arguments:
/Volumes/Export/users/alexfrol/workspaces/ws/dev/build_objs/efi2mac_debug/bin/clang++
-cc1 -triple x86_64-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name
source.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 134.9 -coverage-file
/Volumes/Export/users/alexfrol/tc/i/r_value_referencesCpp/source.o
-resource-dir
/Volumes/Export/users/alexfrol/workspaces/ws/dev/build_objs/efi2mac_debug/bin/lib/clang/3.2
-fmodule-cache-path
/var/folders/zz/zyxvpxvq6csfxvn_n01bt3xw0_yhzg/T/clang-module-cache -O2
-std=c++0x -fdeprecated-macro -fdebug-compilation-dir
/nfs/ims/home/alexfrol/workspace/tc/i/r_value_referencesCpp -ferror-limit 19
-fmessage-length 120 -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 -o
source.o -x c++ source.cpp
1.      source.cpp:15:39: current parser token '/'
clang++: error: unable to execute command: Illegal instruction: 4
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: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130603/e6517b9c/attachment.html>


More information about the llvm-bugs mailing list