[llvm-commits] CVS: llvm/test/Programs/SingleSource/Regression/C++/CompileFail/2003-09-30-NestedFunctionDecl.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 30 10:41:02 PDT 2003


Changes in directory llvm/test/Programs/SingleSource/Regression/C++/CompileFail:

2003-09-30-NestedFunctionDecl.cpp added (r1.1)

---
Log message:

New fixed bug, distilled from 252.eon


---
Diffs of the changes:

Index: llvm/test/Programs/SingleSource/Regression/C++/CompileFail/2003-09-30-NestedFunctionDecl.cpp
diff -c /dev/null llvm/test/Programs/SingleSource/Regression/C++/CompileFail/2003-09-30-NestedFunctionDecl.cpp:1.1
*** /dev/null	Tue Sep 30 10:40:35 2003
--- llvm/test/Programs/SingleSource/Regression/C++/CompileFail/2003-09-30-NestedFunctionDecl.cpp	Tue Sep 30 10:40:25 2003
***************
*** 0 ****
--- 1,10 ----
+ // The C++ front-end thinks the two foo's are different, the LLVM emitter 
+ // thinks they are the same.  The disconnect causes problems.
+ 
+ void foo() { }
+ 
+ void bar() {
+   void foo();
+  
+   foo();
+ }





More information about the llvm-commits mailing list