[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2017-03-23 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251 chihin ko changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug debug/54773] no debug info generated for rvalue reference

2017-03-23 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773 chihin ko changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/78761] New: C++14, compiler generate mangled name that can not be demangled

2016-12-09 Thread chihin.ko at oracle dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Target Milestone: --- cat t.cc template decltype(auto) g_1(T t) { return t; } template auto g_2(T t) { return t; } int main() { decltype(auto

[Bug c++/78329] incorrect debug info for return type deduction C++14

2016-11-15 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78329 --- Comment #1 from chihin ko --- The bug only happen in member functions, I tried multiple classes with deducted return type for multiple member functions, they all point to the same DW_TAG_unspecified_type.

[Bug c++/78329] New: incorrect debug info for return type deduction C++14

2016-11-11 Thread chihin.ko at oracle dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Target Milestone: --- cat t.cc class AA { public: auto func(int arg) { int i = 0; for (; i < arg; i++); return i; } } a; auto func1(int arg) { int i

[Bug debug/68904] DWARF for class ios_base says it's a declaration

2015-12-14 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68904 --- Comment #4 from chihin ko --- (In reply to Andrew Pinski from comment #1) > Can you try: > -fno-eliminate-unused-debug-types > > I bet the full type debug info is going to be emitted in a different TU > which is why GCC is not emitting it

[Bug debug/68904] New: DWARF for class ios_base says it's a declaration

2015-12-14 Thread chihin.ko at oracle dot com
: debug Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Target Milestone: --- We've build the appended program with all manner of g++'s (from 3.4.3 to 5.2.0) and in all cases the DWARF information for class ios_base is "weird": <

[Bug debug/68904] DWARF for class ios_base says it's a declaration

2015-12-14 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68904 --- Comment #2 from chihin ko --- Created attachment 37032 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37032=edit test case

[Bug debug/68904] DWARF for class ios_base says it's a declaration

2015-12-14 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68904 --- Comment #3 from chihin ko --- Created attachment 37033 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37033=edit dwarf dump of test case test.cc

[Bug c++/66116] New: no DW_TAG_template_type_parameter for template instantiation

2015-05-11 Thread chihin.ko at oracle dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Target Milestone: --- Created attachment 35520 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35520action=edit test case For attached std_list_iterators.cc

[Bug c++/66080] New: incorrect debug info for CTOR

2015-05-08 Thread chihin.ko at oracle dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Target Milestone: --- Created attachment 35505 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35505action=edit test case for attach delegating_constructors.cc test case, due to incorrect debug info, gdb

[Bug debug/54773] no debug info generated for rvalue reference

2015-04-22 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773 --- Comment #3 from chihin ko chihin.ko at oracle dot com --- g++ 4.8.2 on intel-Linux regress again. DW_TAG_rvalue_reference_type did not get generated. g++ 4.8.2 on intel Solaris is broken too. g++ 4.9.0 works on intel-Linux but not on intel

[Bug debug/65821] [4.8/4.9/5/6 regression] incorrect debug line # info for main

2015-04-21 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65821 --- Comment #5 from chihin ko chihin.ko at oracle dot com --- Created attachment 35381 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35381action=edit test case 1/1

[Bug debug/65821] [4.8/4.9/5/6 regression] incorrect debug line # info for main

2015-04-21 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65821 --- Comment #4 from chihin ko chihin.ko at oracle dot com --- (In reply to Richard Biener from comment #3) What version works correctly? (please provide the testcase as attachment as well) 00x000b DW_TAG_compile_unit

[Bug debug/65821] New: [4.8.2 regression] incorrect debug line # info for main

2015-04-20 Thread chihin.ko at oracle dot com
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com this happen since 4.8.2, 4.9.0 also have same problem. cat t.cc == 1 #include stdio.h 2 3 int b = 12

[Bug debug/65821] [4.8.2 regression] incorrect debug line # info for main

2015-04-20 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65821 --- Comment #2 from chihin ko chihin.ko at oracle dot com --- (In reply to Andrew Pinski from comment #1) It is doing (b+3) first which is from :5 which seems correct to me. Default arguments should have a line information right? Then gdb

[Bug debug/65822] New: [4.8.2 regression] Used variant fun names in dwarf info for CTORs

2015-04-20 Thread chihin.ko at oracle dot com
Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Created attachment 35372 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35372action=edit test case 1/1 for attached *.cc, there are 3 A CTORS and 3

[Bug c++/64912] New: no debug info for struct that pass by reference

2015-02-02 Thread chihin.ko at oracle dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com For following t.cc: extern C int printf(const char*, ...); #include deque using namespace std; dequeint gl_li(5,100); int main () { dequeint tmp_deque

[Bug c++/63759] New: did not use DW_TAG_template_alias for template alias

2014-11-05 Thread chihin.ko at oracle dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Created attachment 33905 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33905action=edit test case For attached test case t.cc, g++ did not generate appropriate debug info for template

[Bug debug/54773] no debug info generated for rvalue reference

2014-08-12 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773 --- Comment #2 from chihin ko chihin.ko at oracle dot com --- g++ 4.8.1 on Linux fixed the problem, but problem still exists in g++ 4.8.1 on solaris.

[Bug debug/57939] incorrect debug info of wchar_t

2014-06-25 Thread chihin.ko at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57939 --- Comment #2 from chihin ko chihin.ko at oracle dot com --- Yeah, difference version of gdb resulting different behavior: On Red Hat Enterprise Linux Server release 5.4 (Tikanga) GNU gdb Fedora (6.8-37.el5) (gdb) p L $1 = 98 gcc version 4.7.2

[Bug c++/60948] New: incorrect debug info for reference type of function parameters

2014-04-23 Thread chihin.ko at oracle dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com cat t.cc #include stdio.h int f(int r) { r = r + 1; return r; } main(void) { int j = 99; int i = 99; printf(i = %d\n,i); printf(f(i

[Bug c++/58178] variant function name was used for user defined constructor

2013-08-20 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58178 --- Comment #9 from chihin ko chihin.ko at oracle dot com --- (In reply to Eric Botcazou from comment #8) The configure line for the compiler is needed on Solaris as well. Using built-in specs. COLLECT_GCC=/pkg/gnu/bin/g++-4.8.1-5.10

[Bug c++/58198] duplicate codes generated for variant function and base function

2013-08-20 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58198 --- Comment #2 from chihin ko chihin.ko at oracle dot com --- (In reply to Jakub Jelinek from comment #1) For book keeping of what? GCC before 4.7.0 are no longer supported. oracle solstudtio debugger dbx support gnu compiler v4.1 v4.5.2...etc

[Bug c++/58178] variant function name was used for user defined constructor

2013-08-19 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58178 --- Comment #3 from chihin ko chihin.ko at oracle dot com --- a.out execution does not have problem, it is the debugging support would have problem.

[Bug c++/58178] variant function name was used for user defined constructor

2013-08-19 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58178 --- Comment #5 from chihin ko chihin.ko at oracle dot com --- Oracle Solaris 10 8/11 s10x_u10wos_17b X86 DW_AT_producer GNU C++ 4.8.1 -mtune=generic -march=pentium4 -g

[Bug c++/58178] variant function name was used for user defined constructor

2013-08-19 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58178 --- Comment #6 from chihin ko chihin.ko at oracle dot com --- On Linux: pirandello 934 cat /etc/*release* Enterprise Linux Enterprise Linux Server release 5.4 (Carthage) cat: /etc/lsb-release.d: Is a directory Red Hat Enterprise Linux Server

[Bug c++/58198] New: duplicate codes generated for variant function and base function

2013-08-19 Thread chihin.ko at oracle dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com Created attachment 30675 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30675action=edit test case This problem was fixed after g++ 4.4, I file this bug

[Bug c++/58178] New: variant function name was used for user defined constructor

2013-08-16 Thread chihin.ko at oracle dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com test case: cat t.cc #include stdio.h struct base { int x; base() { x= 2;}; }; struct A { static int x; struct B :base{ void f

[Bug debug/57939] New: incorrect debug info of wchar_t

2013-07-19 Thread chihin.ko at oracle dot com
Assignee: unassigned at gcc dot gnu.org Reporter: chihin.ko at oracle dot com cat t.cc #include stdio.h void foo(wchar_t c) { printf(In foo(wchar_t) %d\n, c); } main() { wchar_t L = L'b'; } g++ -std=c++11 -g t.cc gdb a.out Breakpoint 1, main () at t.cc:7 7 wchar_t L

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-08 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251 --- Comment #2 from chihin ko chihin.ko at oracle dot com 2013-02-08 21:24:55 UTC --- How is it invalid ? it was compilable and runnable: benjamin2 906 /pkg/gnu/bin/g++ -v Using built-in specs. COLLECT_GCC=/pkg/gnu/bin/g++-4.7.1-5.10

[Bug c++/56251] no DW_AT_const_value for static const member of a template class

2013-02-08 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251 --- Comment #4 from chihin ko chihin.ko at oracle dot com 2013-02-08 22:01:36 UTC --- Note, this is a const static member, the initialization is the definition, if I don't initialize it, I would get an Undefined symbol linking error

[Bug c++/56251] New: no DW_AT_const_value for static const member of a template class

2013-02-07 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56251 Bug #: 56251 Summary: no DW_AT_const_value for static const member of a template class Classification: Unclassified Product: gcc Version: 4.6.2 Status:

[Bug debug/56236] New: incorrect debug info for decltype(nullptr)

2013-02-06 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56236 Bug #: 56236 Summary: incorrect debug info for decltype(nullptr) Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal

[Bug c++/55785] New: gcc4.5.2 incorrect line # of caller for destructor

2012-12-21 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55785 Bug #: 55785 Summary: gcc4.5.2 incorrect line # of caller for destructor Classification: Unclassified Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity:

[Bug debug/54774] [4.4.4, 4.5, 4.6, 4.7] insufficient debug info for strong typed enum

2012-12-06 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774 chihin ko chihin.ko at oracle dot com changed: What|Removed |Added Summary|insufficient debug info for |[4.4.4

[Bug c++/55541] New: unable to see local variables due extra lexical block was generated

2012-11-29 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55541 Bug #: 55541 Summary: unable to see local variables due extra lexical block was generated Classification: Unclassified Product: gcc Version: 4.6.2 Status:

[Bug debug/54773] New: no debug info generated for rvalue reference

2012-10-01 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773 Bug #: 54773 Summary: no debug info generated for rvalue reference Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal

[Bug debug/54774] New: insufficient debug info for strong typed enum

2012-10-01 Thread chihin.ko at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774 Bug #: 54774 Summary: insufficient debug info for strong typed enum Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal