<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - rvalue references with template static initializers"
   href="http://llvm.org/bugs/show_bug.cgi?id=15814">15814</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>rvalue references with template static initializers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>alexey.frolov@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=10403" name="attach_10403" title="Preprocessed source and associated run script">attachment 10403</a> <a href="attachment.cgi?id=10403&action=edit" title="Preprocessed source and associated run script">[details]</a></span>
Preprocessed source and associated 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_iclang/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/iclang/r_value_referencesCpp/source.o
-resource-dir
/Volumes/Export/users/alexfrol/workspaces/ws_iclang/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/iclang/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)
Intel(R) Compiler based on clang version 3.2 (trunk 260) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix
clang++: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang++: note: diagnostic msg:</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>