<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 --- - Infinite loop on operator =="
   href="http://llvm.org/bugs/show_bug.cgi?id=20674">20674</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Infinite loop on operator ==
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Modules
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>biancacristinacristescu@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat module.map 
module libMathCore {   
  header "random.h"
  header "Math/ParamFunctor.h"
  export *
}

module libHist {
  header "TF1.h"
  header "TFormula.h"
  export *
}

module libTreePlayer {
  header "random.h"
  header "TTreeFormula.h"
  use libHist
 export *
}
---------------------------------------------------------------------------------
$ cat ParamFunctor.h // It is indeed an empty file.
---------------------------------------------------------------------------------
$ cat TF1.h 
#include "TFormula.h"
#include "Math/ParamFunctor.h"

class TF1 : public TFormula {

};
--------------------------------------------------------------------------------
$ cat TFormula.h 
#ifndef ROOT_TFormula
#define ROOT_TFormula

class TFormula {};

#endif
--------------------------------------------------------------------------------
$ cat TTreeFormula.h 
#ifndef ROOT_TTreeFormula
#define ROOT_TTreeFormula

#include "TFormula.h"

class TTreeFormula : public TFormula {};

#endif
--------------------------------------------------------------------------------

The command to reproduce it is:
/home/cristina/llvm-proj/inst-deb/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -E -disable-free -mrelocation-model static
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version
2.23.52.20130913 -v -dwarf-column-info -resource-dir
/home/cristina/llvm-proj/inst-deb/bin/../lib/clang/3.5.0 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
-internal-isystem /usr/local/include -internal-isystem
/home/cristina/llvm-proj/inst-deb/bin/../lib/clang/3.5.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/cristina/llvm-sources/clang-tiered-pcm-reproducer -ferror-limit 19
-fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -x c++ -fcolor-diagnostics -x c++
-std=c++11 -I/home/cristina/root/objOptimizations/include -fmodules
-fno-modules-global-index -fdisable-module-hash -fmodule-maps -emit-module
/home/cristina/root/objOptimizations/include/module.map
-fmodules-cache-path=/home/cristina/llvm-sources/clang-tiered-pcm-reproducer/pcm
-fmodule-name=libTreePlayer

And the backtrace of the infinite loop is:
llvm::PointerUnion<clang::Decl*, clang::LazyGenerationalUpdatePtr<clang::Decl
const*, clang::Decl*,
&clang::ExternalASTSource::CompleteRedeclChain>::LazyData*>::getFromOpaqueValue
(VP=0x63d2062)
    at /home/cristina/llvm-proj/llvm/include/llvm/ADT/PointerUnion.h:183
183        }
(gdb) bt
#0  llvm::PointerUnion<clang::Decl*,
clang::LazyGenerationalUpdatePtr<clang::Decl const*, clang::Decl*,
&clang::ExternalASTSource::CompleteRedeclChain>::LazyData*>::getFromOpaqueValue
(VP=0x63d2062)
    at /home/cristina/llvm-proj/llvm/include/llvm/ADT/PointerUnion.h:183
#1  0x0000000001130df4 in clang::LazyGenerationalUpdatePtr<clang::Decl const*,
clang::Decl*,
&clang::ExternalASTSource::CompleteRedeclChain>::getFromOpaqueValue
(Ptr=0x63d2062)
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExternalASTSource.h:444
#2  0x000000000110bdcd in
llvm::PointerLikeTypeTraits<clang::LazyGenerationalUpdatePtr<clang::Decl
const*, clang::Decl*, &clang::ExternalASTSource::CompleteRedeclChain>
<span class="quote">>::getFromVoidPointer (P=0x63d2062)</span >
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Frontend/../../include/clang/AST/ExternalASTSource.h:458
#3  0x00000000010f2085 in llvm::PointerUnion<llvm::PointerUnion<clang::Decl*,
clang::ASTContext const*>, clang::LazyGenerationalUpdatePtr<clang::Decl const*,
clang::Decl*, &clang::ExternalASTSource::CompleteRedeclChain>
<span class="quote">>::get<clang::LazyGenerationalUpdatePtr<clang::Decl const*, clang::Decl*,</span >
&clang::ExternalASTSource::CompleteRedeclChain> > (this=0x63d2000)
    at /home/cristina/llvm-proj/llvm/include/llvm/ADT/PointerUnion.h:132
#4  0x00000000010e5db9 in
clang::Redeclarable<clang::FunctionDecl>::DeclLink::getNext (this=0x63d2000,
D=0x63d1fa0)
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Redeclarable.h:74
#5  0x00000000010e1277 in
clang::Redeclarable<clang::FunctionDecl>::getNextRedeclaration (this=0x63d2000)
at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Frontend/../../include/clang/AST/Redeclarable.h:119
#6  0x00000000025af17e in clang::FunctionDecl::getNextRedeclarationImpl
(this=0x63d1fa0) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/AST/../../include/clang/AST/Decl.h:1562
#7  0x00000000011f3d8e in clang::Decl::redecl_iterator::operator++
(this=0x7fffffff6580) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/../../include/clang/AST/DeclBase.h:751
#8  0x0000000001224605 in clang::ASTReader::finishPendingActions
(this=0x6384bd0) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTReader.cpp:8174
#9  0x000000000122555c in clang::ASTReader::FinishedDeserializing
(this=0x6384bd0) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTReader.cpp:8323
#10 0x00000000011f4153 in
clang::ExternalASTSource::Deserializing::~Deserializing (this=0x7fffffff66f0,
__in_chrg=<optimized out>)
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/../../include/clang/AST/ExternalASTSource.h:82
#11 0x00000000012884ac in clang::ASTReader::ReadDeclRecord (this=0x6384bd0,
ID=15) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTReaderDecl.cpp:2624
#12 0x000000000121b31c in clang::ASTReader::GetDecl (this=0x6384bd0, ID=15) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTReader.cpp:6176
#13 0x00000000011f7135 in clang::ASTReader::GetLocalDecl (this=0x6384bd0,
F=..., LocalID=15) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/../../include/clang/Serialization/ASTReader.h:1605
#14 0x0000000001230419 in clang::ASTReader::GetLocalDeclAs<clang::NamedDecl>
(this=0x6384bd0, F=..., LocalID=15)
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/../../include/clang/Serialization/ASTReader.h:1613
#15 0x000000000121bf22 in (anonymous
namespace)::DeclContextNameLookupVisitor::visit (M=...,
UserData=0x7fffffff6d50) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTReader.cpp:6419
#16 0x00000000013456b8 in clang::serialization::ModuleManager::visit
(this=0x6384c68, 
    Visitor=0x121bce9 <(anonymous
namespace)::DeclContextNameLookupVisitor::visit(clang::serialization::ModuleFile&,
void*)>, UserData=0x7fffffff6d50, ModuleFilesHit=0x0)
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ModuleManager.cpp:328
#17 0x000000000121c3fc in clang::ASTReader::FindExternalVisibleDeclsByName
(this=0x6384bd0, DC=0x6383898, Name=...) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTReader.cpp:6502
#18 0x00000000025c700c in clang::DeclContext::lookup (this=0x6383898, Name=...)
at /home/cristina/llvm-proj/llvm/tools/clang/lib/AST/DeclBase.cpp:1318
#19 0x00000000012f1431 in
visitLocalLookupResults<clang::ASTWriter::GenerateNameLookupTable(const
clang::DeclContext*, llvm::SmallVectorImpl<char>&)::__lambda2>(const
clang::DeclContext *, bool, clang::ASTWriter::__lambda2) (ConstDC=0x6383898,
NeedToReconcileExternalVisibleStorage=true, AddLookupResult=...) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:3621
#20 0x00000000012d8c3a in clang::ASTWriter::GenerateNameLookupTable
(this=0x6383fa8, DC=0x6383898, LookupTable=...) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:3681
#21 0x00000000012d8f34 in clang::ASTWriter::WriteDeclContextVisibleBlock
(this=0x6383fa8, Context=..., DC=0x6383898) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:3739
#22 0x000000000132252b in clang::ASTWriter::WriteDecl (this=0x6383fa8,
Context=..., D=0x6383870) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTWriterDecl.cpp:1957
#23 0x00000000012e5db7 in clang::ASTWriter::WriteASTCore (this=0x6383fa8,
SemaRef=..., isysroot=..., OutputFile=..., WritingModule=0x637ac00)
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:4455
#24 0x00000000012e3d7a in clang::ASTWriter::WriteAST (this=0x6383fa8,
SemaRef=..., OutputFile=..., WritingModule=0x637ac00, isysroot=...,
hasErrors=false)
    at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:4093
#25 0x000000000133b333 in clang::PCHGenerator::HandleTranslationUnit
(this=0x6383e70, Ctx=...) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Serialization/GeneratePCH.cpp:53
#26 0x00000000015c5d08 in clang::ParseAST (S=..., PrintStats=false,
SkipFunctionBodies=false) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Parse/ParseAST.cpp:154
#27 0x000000000109a8a4 in clang::ASTFrontendAction::ExecuteAction
(this=0x634e120) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:514
#28 0x000000000109a3d9 in clang::FrontendAction::Execute (this=0x634e120) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:415
#29 0x00000000010660ff in clang::CompilerInstance::ExecuteAction
(this=0x634d390, Act=...) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:810
#30 0x000000000102b4e5 in clang::ExecuteCompilerInvocation (Clang=0x634d390) at
/home/cristina/llvm-proj/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:222
#31 0x0000000001019232 in cc1_main (ArgBegin=0x7fffffffce68,
ArgEnd=0x7fffffffd078, Argv0=0x7fffffffdcd8
"/home/cristina/llvm-proj/inst-deb/bin/clang",</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>