Bug #1081

GCC compilation issue - revision 8456

Added by Zbigniew Rebacz almost 9 years ago. Updated almost 9 years ago.

Status:ApprovedStart date:05/17/2015
Priority:HighDue date:
Assignee:Zbigniew Rebacz% Done:

0%

Category:-Spent time:-
Target version:-

Description

uppsrc/Core/Diag.h:88:26: error: stray ‘’ in program
#define DLOG(x)
// To clean logs after debugging, this produces error in release mode
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:499:2: note: in expansion of macro ‘DLOG’
DLOG;
^
uppsrc/Core/Diag.h:88:26: error: stray ‘’ in program
#define DLOG(x)
// To clean logs after debugging, this produces error in release mode
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:510:4: note: in expansion of macro ‘DLOG’
DLOG;
^
-e Compiling \e[34m/home/klugier/upp/uppsrc/CppBase/srcfiles.cpp\e[0m
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp: In function ‘const Upp::PPFile& Upp::GetFlatPPFile(const char*, Upp::Index<Upp::String>&)’:
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:504:31: error: invalid initialization of reference of type ‘Upp::FlatPP&’ from expression of type ‘Upp::PPFile’
FlatPP& fp = sFlatPP.Add(path);
^
-e Compiling \e[34m/home/klugier/upp/uppsrc/CppBase/cpp.cpp\e[0m
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:513:48: error: invalid initialization of reference of type ‘const Upp::FlatPP&’ from expression of type ‘const Upp::PPFile’
const FlatPP& pp = GetFlatPPFile(s, visited);
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:514:27: error: ‘const struct Upp::FlatPP’ has no member named ‘item’
for(int i = 0; i < pp.item.GetCount(); i++)
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:515:9: error: ‘struct Upp::FlatPP’ has no member named ‘item’
fp.item.Add(pp.item[i]);
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:515:21: error: ‘const struct Upp::FlatPP’ has no member named ‘item’
fp.item.Add(pp.item[i]);
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:522:7: error: ‘struct Upp::FlatPP’ has no member named ‘item’
fp.item.Add(m);
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:525:9: error: invalid initialization of reference of type ‘const Upp::PPFile&’ from expression of type ‘Upp::FlatPP’
return fp;
^
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp: In function ‘const Upp::PPFile& Upp::GetFlatPPFile(const char*)’:
/home/klugier/upp/uppsrc/CppBase/ppfile.cpp:528:45: error: new declaration ‘const Upp::PPFile& Upp::GetFlatPPFile(const char*)’
const PPFile& GetFlatPPFile(const char path)
^
In file included from /home/klugier/upp/uppsrc/CppBase/ppfile.cpp:1:0:
/home/klugier/upp/uppsrc/CppBase/CppBase.h:109:15: error: ambiguates old declaration ‘const Upp::FlatPP& Upp::GetFlatPPFile(const char
)’
const FlatPP& GetFlatPPFile(const char path); // with #includes resolved
^
make1:
[_out_standard/CppBase/GUI.LINUX.MT.POSIX/ppfile.cpp.speed.o] B??d 1
make1: *
Oczekiwanie na niezako?czone zadania....
In file included from uppsrc/Core/Core.h:261:0,
from /home/klugier/upp/uppsrc/CppBase/CppBase.h:4,
from /home/klugier/upp/uppsrc/CppBase/cpp.cpp:1:
uppsrc/Core/Diag.h:88:26: error: stray ‘’ in program
#define DLOG(x)
// To clean logs after debugging, this produces error in release mode
^
/home/klugier/upp/uppsrc/CppBase/cpp.cpp:162:3: note: in expansion of macro ‘DLOG’
DLOG << " items");
^
/home/klugier/upp/uppsrc/CppBase/cpp.cpp: In member function ‘void Upp::Cpp::DoFlatInclude(const Upp::String&)’:
/home/klugier/upp/uppsrc/CppBase/cpp.cpp:161:47: error: invalid initialization of reference of type ‘const Upp::PPFile&’ from expression of type ‘const Upp::FlatPP’
const PPFile& pp = GetFlatPPFile(header_path);

History

#1 Updated by Miroslav Fidler almost 9 years ago

  • Status changed from New to Ready for QA
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

#2 Updated by Zbigniew Rebacz almost 9 years ago

  • Status changed from Ready for QA to Approved

Also available in: Atom PDF