[Bug debug/27574] [4.2/4.3/4.4 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor

2008-11-12 Thread dodji at gcc dot gnu dot org


--- Comment #25 from dodji at gcc dot gnu dot org  2008-11-12 21:59 ---
Subject: Bug 27574

Author: dodji
Date: Wed Nov 12 21:57:44 2008
New Revision: 141807

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141807
Log:
gcc/ChangeLog:
2008-11-12  Dodji Seketeli  <[EMAIL PROTECTED]>

PR debug/27574
* cgraph.h: New abstract_and_needed member to struct cgraph_node.
* cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
- which clones are reachable - as "abstract and needed".
* cgraph.c (cgraph_release_function_body):  If a node is "abstract and
needed",
do not release its DECL_INITIAL() content because that will be needed
to emit
debug info.

gcc/testsuite/ChangeLog:
2008-11-12  Dodji Seketeli  <[EMAIL PROTECTED]>

PR debug/27574
* g++.dg/debug/dwarf2/local-var-in-contructor.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.c
trunk/gcc/cgraph.h
trunk/gcc/cgraphunit.c
trunk/gcc/final.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574



[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor

2008-11-13 Thread dodji at gcc dot gnu dot org


--- Comment #26 from dodji at gcc dot gnu dot org  2008-11-13 10:56 ---
Subject: Bug 27574

Author: dodji
Date: Thu Nov 13 10:55:01 2008
New Revision: 141819

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141819
Log:
Fix ChangeLog entry:
PR debug/27574
* cgraph.h: New abstract_and_needed member to struct cgraph_node.
* cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
- which clones are reachable - as "abstract and needed".
* cgraph.c (cgraph_release_function_body):  If a node is
"abstract and needed", do not release its DECL_INITIAL() content
that will be needed to emit debug info.


Modified:
trunk/gcc/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574



[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor

2008-11-14 Thread dodji at gcc dot gnu dot org


--- Comment #27 from dodji at gcc dot gnu dot org  2008-11-14 13:28 ---
Subject: Bug 27574

Author: dodji
Date: Fri Nov 14 13:26:59 2008
New Revision: 141858

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141858
Log:
gcc/ChangeLog:
PR debug/27574
* cgraph.h: New abstract_and_needed member to struct cgraph_node.
* cgraphunit.c (cgraph_analyze_functions): Flag abstract functions
-which clones are reachable - as "abstract and needed".
* cgraph.c (cgraph_release_function_body):  If a node is
"abstract and needed", do not release its DECL_INITIAL() content
will be needed to emit debug info.

gcc/testsuite/ChangeLog:
PR debug/27574
* g++.dg/debug/dwarf2/local-var-in-contructor.C: New test.


Added:
   
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/cgraph.c
branches/gcc-4_3-branch/gcc/cgraph.h
branches/gcc-4_3-branch/gcc/cgraphunit.c
branches/gcc-4_3-branch/gcc/final.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574



[Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error

2008-11-18 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-02-29 12:48:25 |2008-11-18 12:56:02
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405



[Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error

2008-11-18 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2008-11-18 12:57 ---
Okay, patch updated and sent to
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00873.html.
Fingers crossed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405



[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-11-18 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2008-11-18 16:49 ---
Here is a reduced testcase:

 1  template class W>
struct A {};
 2  
 3  template struct B {};
 4  
 5  int
 6  main ()
 7  {
 8A a;
 9return 0;
10  }
11  


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 CC|    |dodji at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37142



[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-11-18 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2008-11-18 16:52 ---
With the reduced test case, the error message on svn trunk is now:

8: internal compiler error: in dependent_type_p, at cp/pt.c:15922


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37142



[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor

2008-11-18 Thread dodji at gcc dot gnu dot org


--- Comment #28 from dodji at gcc dot gnu dot org  2008-11-19 00:17 ---
Subject: Bug 27574

Author: dodji
Date: Wed Nov 19 00:15:52 2008
New Revision: 141984

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141984
Log:
gcc/ChangeLog:
2008-11-14  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/27574
* gcc/cgraph.c (cgraph_remove_node): Do not remove the body of
  abstract functions. It might be useful to emit debugging
  information. This is a patch from Ian Lance Taylor.
* cgraphunit.c (cgraph_optimize): Do not cry when bodies of abstract
  functions are still around. They are useful to output debug info.

gcc/testsuite/ChangeLog
2008-11-14  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/27574
* testsuite/g++.dg/debug/dwarf2/dwarf2.exp: Backport this here from
gcc-4_3-branch.
* g++.dg/debug/dwarf2/local-var-in-contructor.C: New testcase.

Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/debug/dwarf2/
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/debug/dwarf2/dwarf2.exp
   
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/cgraph.c
branches/gcc-4_2-branch/gcc/cgraphunit.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574



[Bug debug/27574] [4.2/4.3 Regression] MIssing debug info at -O0 for a local variable in a C++ constructor

2008-11-18 Thread dodji at gcc dot gnu dot org


--- Comment #29 from dodji at gcc dot gnu dot org  2008-11-19 00:21 ---
Fixed in trunk, 4.3 and 4.2 branch.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574



[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2008-11-19 21:27 ---
Posted a patch at http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00956.html


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-08-17 09:28:13 |2008-11-19 21:27:10
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37142



[Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #8 from dodji at gcc dot gnu dot org  2008-11-19 22:28 ---
Subject: Bug 35405

Author: dodji
Date: Wed Nov 19 22:26:56 2008
New Revision: 142022

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142022
Log:
gcc/cp/ChangeLog:
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/35405
* pt.c (lookup_template_class): Check pointers before dereferencing
  Them.
* error.c (dump_template_decl): Likewise.

gcc/testsuite/ChangeLog:
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/35405
* g++.dg/template/crash84.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/template/crash84.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/error.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405



[Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #9 from dodji at gcc dot gnu dot org  2008-11-19 22:37 ---
Subject: Bug 35405

Author: dodji
Date: Wed Nov 19 22:36:31 2008
New Revision: 142023

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142023
Log:
gcc/cp/ChangeLog:
2008-11-18  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/35405
* pt.c (lookup_template_class): Check pointers before dereferencing
  Them.
* error.c (dump_template_decl): Likewise.

gcc/testsuite/ChangeLog
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/35405
* g++.dg/template/crash84.C: New test.


Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/template/crash84.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/error.c
branches/gcc-4_3-branch/gcc/cp/pt.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405



[Bug c++/35405] [4.2/4.3/4.4 Regression] Internal compiler error

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #10 from dodji at gcc dot gnu dot org  2008-11-19 22:49 ---
Fixed in trunk and gcc-4_3-branch.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405



[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #8 from dodji at gcc dot gnu dot org  2008-11-20 00:02 ---
Subject: Bug 37142

Author: dodji
Date: Thu Nov 20 00:00:39 2008
New Revision: 142025

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142025
Log:
gcc/testsuite/ChangeLog:
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/37142
* g++.dg/template/crash85.C: New test.

gcc/cp/ChangeLog
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/37142
* pt.c (coerce_template_template_parm): Use the more robust
uses_template_parms instead of dependent_type_p.


Added:
trunk/gcc/testsuite/g++.dg/template/crash85.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37142



[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #9 from dodji at gcc dot gnu dot org  2008-11-20 00:06 ---
Subject: Bug 37142

Author: dodji
Date: Thu Nov 20 00:05:04 2008
New Revision: 142026

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142026
Log:
gcc/cp/ChangeLog:
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/37142
* pt.c (coerce_template_template_parm): Use the more robust
uses_template_parms instead of dependent_type_p.

gcc/testsuite/ChangeLog:
 2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/37142
* g++.dg/template/crash79.C: New test.


Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/template/crash79.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/pt.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37142



[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #10 from dodji at gcc dot gnu dot org  2008-11-20 00:14 ---
Subject: Bug 37142

Author: dodji
Date: Thu Nov 20 00:13:15 2008
New Revision: 142027

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142027
Log:
gcc/cp/ChangeLog:
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/37142
* pt.c (coerce_template_template_parm): Use the more robust
uses_template_parms instead of dependent_type_p.

gcc/testsuite/ChangeLog/
2008-11-19  Dodji Seketeli  <[EMAIL PROTECTED]>

PR c++/37142
* g++.dg/template/crash71.C: New test.


Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/crash71.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/pt.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37142



[Bug c++/37142] [4.2/4.3/4.4 Regression] ICE: in dependent_type_p, at cp/pt.c:15585

2008-11-19 Thread dodji at gcc dot gnu dot org


--- Comment #11 from dodji at gcc dot gnu dot org  2008-11-20 00:15 ---
Fixed in trunk, 4.3 and 4.2 branches.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37142



[Bug debug/30161] GCC should generate dwarf info about template parameters

2008-12-02 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|jason at gcc dot gnu dot org|dodji at gcc dot gnu dot org
 Status|NEW |ASSIGNED
   Last reconfirmed|2006-12-12 09:45:45 |2008-12-02 09:01:51
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30161



[Bug debug/37959] g++ does not emit DW_AT_explicit

2008-12-05 Thread dodji at gcc dot gnu dot org


--- Comment #2 from dodji at gcc dot gnu dot org  2008-12-05 14:29 ---
This patch was posted to gcc-patches, got reworked and approved. See
http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00137.html.

I will wait until trunk is open again for feature commit to install it.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37959



[Bug debug/38390] Missing DW_TAG_imported_module

2008-12-05 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2008-12-05 16:17:53
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38390



[Bug debug/38390] Missing DW_TAG_imported_module

2008-12-05 Thread dodji at gcc dot gnu dot org


--- Comment #1 from dodji at gcc dot gnu dot org  2008-12-05 20:27 ---
It looks like this is due to the fact that f contains no statement considered
"meaningful" by the front end. So, no BIND_EXPR node is being generated for its
body, so no debug info is being generated for its body either.

For instance, in the example below:

namespace A
  {
int v;
  }

int
f ()
{
  int i = 0;
  using namespace A;
  return v;
}

the DW_AT_imported_module is being generated correctly.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38390



[Bug debug/38390] Missing DW_TAG_imported_module

2008-12-05 Thread dodji at gcc dot gnu dot org


--- Comment #2 from dodji at gcc dot gnu dot org  2008-12-05 20:29 ---
Created an attachment (id=16834)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16834&action=view)
A candidate patch

This patch seems to fix the problem. I haven't tried to make it pass regtests
yet though.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38390



[Bug debug/38390] Missing DW_TAG_imported_module

2008-12-07 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2008-12-07 22:19 ---
The patch passes regtests. I have posted it to
http://gcc.gnu.org/ml/gcc-patches/2008-12/msg00442.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38390



[Bug debug/38390] Missing DW_TAG_imported_module

2008-12-08 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2008-12-08 19:02 ---
Subject: Bug 38390

Author: dodji
Date: Mon Dec  8 19:00:46 2008
New Revision: 142562

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142562
Log:
gcc/cp/ChangeLog:
2008-12-07  Dodji Seketeli  <[EMAIL PROTECTED]>

PR debug/38390
* name-lookup.c (kept_level_p): Don't forget the case of levels
  having using directives.

gcc/testsuite/ChangeLog:
2008-12-07  Dodji Seketeli  <[EMAIL PROTECTED]>

PR debug/38390
* g++.dg/debug/dwarf2/imported-module-2.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38390



[Bug debug/38390] Missing DW_TAG_imported_module

2008-12-08 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2008-12-08 19:25 ---
Fixed in trunk.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38390



[Bug debug/30161] GCC should generate dwarf info about template parameters

2008-12-15 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2008-12-15 10:01 ---
Started looking at this. Got a work in progress patch at
http://www.seketeli.org/dodji/patches/gcc/PR30161-patch.txt. It's not ready for
review yet, I am just backuping it online.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30161



[Bug debug/30161] GCC should generate dwarf info about template parameters

2008-12-26 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2008-12-26 18:32 ---
More work-in-progress patches for this PR can be checked out at
http://www.seketeli.org/dodji/patches/gcc/PR30161 .
Please note that each patch there is self contained and passes regtests on
x86_64. The tests accompanying the patches also passes.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30161



[Bug c++/38472] [4.4 Regression] Wrong result type of ternary operator

2009-01-05 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-12-28 22:39:11 |2009-01-05 19:34:49
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38472



[Bug c++/38472] [4.4 Regression] Wrong result type of ternary operator

2009-01-05 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-01-05 22:41 ---
Subject: Bug 38472

Author: dodji
Date: Mon Jan  5 22:41:37 2009
New Revision: 143101

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143101
Log:
gcc/cp/ChangeLog:
2009-01-05  Dodji Seketeli  

PR c++/38472
* typeck.c (type_after_usual_arithmetic_conversions): Fix a typo.
Promotion should be done only for integral or enumeration types.

gcc/testsuite/ChangeLog:
2009-01-05  Dodji Seketeli  

PR c++/38472
* g++.dg/conversion/usual-arith-conv.C: New test.


Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38472



[Bug c++/38472] [4.4 Regression] Wrong result type of ternary operator

2009-01-05 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-01-05 22:48 ---
Fixed in trunk.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38472



[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

2009-01-06 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-12-28 06:27:52 |2009-01-07 01:11:41
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

2009-01-08 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2009-01-08 23:03 ---
Created an attachment (id=17059)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17059&action=view)
candidate patch

I think what is happening is that lookup_name_real (in name-lookup.c) makes
sure types defined in the class hierarchy hide template type parameters. That
scheme is implemented in the outer_binding accessor function.

That scheme is fine for class templates, as stated in the spec in [temp.res]
and [temp.local]. 

Template parameters of member templates though, should hide types defined in
the class scope.

This patch tries to implement that. But I am not sure if it's the right
approach. I'll keep working on it until it's suitable for submission to
gcc-patches.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

2009-01-09 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-01-09 19:10 ---
Created an attachment (id=17066)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17066&action=view)
A better patch

I believe this patch should be better that the previous one because it seems to
be more generic. I am still testing it and thinking about it.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

  Attachment #17059|0   |1
is obsolete||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

2009-01-12 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-01-12 22:41 ---
Subject: Bug 36019

Author: dodji
Date: Mon Jan 12 22:41:19 2009
New Revision: 143313

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143313
Log:
gcc/cp/ChangeLog:
2009-01-12  Dodji Seketeli  

PR c++/36019
* pt.c (parameter_of_template_p): New function.
* pt.c (get_template_info): Ditto.
* cp-tree.h: Declare those.
* name-lookup.c (binding_to_template_parms_of_scope_p): New
function.
(outer_binding): Take template parameters in account when looking for
a name binding.

gcc/testsuite/ChangeLog:
2009-01-12  Dodji Seketeli  

PR c++/36019
* g++.dg/lookup/hidden-class12.C: New test.
* g++.dg/lookup/hidden-class13.C: New test.
* g++.dg/lookup/hidden-class14.C: New test.
* g++.dg/lookup/hidden-class15.C: New test.
* g++.dg/lookup/hidden-class16.C: New test.
* gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C: Adjust testcase.


Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/lookup/hidden-class12.C
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/lookup/hidden-class13.C
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/lookup/hidden-class14.C
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/lookup/hidden-class15.C
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/lookup/hidden-class16.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/cp-tree.h
branches/gcc-4_2-branch/gcc/cp/name-lookup.c
branches/gcc-4_2-branch/gcc/cp/pt.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

2009-01-12 Thread dodji at gcc dot gnu dot org


--- Comment #6 from dodji at gcc dot gnu dot org  2009-01-12 22:44 ---
Subject: Bug 36019

Author: dodji
Date: Mon Jan 12 22:44:13 2009
New Revision: 143314

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143314
Log:
gcc/cp/ChangeLog:
2009-01-12  Dodji Seketeli  

PR c++/36019
* pt.c (parameter_of_template_p): New function.
* cp-tree.h: Declare it.
* name-lookup.c (binding_to_template_parms_of_scope_p): New
function.
(outer_binding): Take template parameters in account when looking for
a name binding.

gcc/testsuite/ChangeLog:
2009-01-12  Dodji Seketeli  

PR c++/36019
* g++.dg/lookup/hidden-class12.C: New test.
* g++.dg/lookup/hidden-class13.C: New test.
* g++.dg/lookup/hidden-class14.C: New test.
* g++.dg/lookup/hidden-class15.C: New test.
* g++.dg/lookup/hidden-class16.C: New test.
* gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C: Adjust testcase.


Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class12.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class13.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class14.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class15.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/lookup/hidden-class16.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/cp-tree.h
branches/gcc-4_3-branch/gcc/cp/name-lookup.c
branches/gcc-4_3-branch/gcc/cp/pt.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

2009-01-12 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2009-01-12 22:48 ---
Subject: Bug 36019

Author: dodji
Date: Mon Jan 12 22:47:49 2009
New Revision: 143315

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143315
Log:
gcc/cp/ChangeLog:
2009-01-12  Dodji Seketeli  

PR c++/36019
* pt.c (parameter_of_template_p): New function.
* cp-tree.h: Declare it.
* name-lookup.c (binding_to_template_parms_of_scope_p): New
function.
(outer_binding): Take template parameters in account when looking for
a name binding.

gcc/testsuite/ChangeLog:
2009-01-12  Dodji Seketeli  

PR c++/36019
* g++.dg/lookup/hidden-class12.C: New test.
* g++.dg/lookup/hidden-class13.C: New test.
* g++.dg/lookup/hidden-class14.C: New test.
* g++.dg/lookup/hidden-class15.C: New test.
* g++.dg/lookup/hidden-class16.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/lookup/hidden-class12.C
trunk/gcc/testsuite/g++.dg/lookup/hidden-class13.C
trunk/gcc/testsuite/g++.dg/lookup/hidden-class14.C
trunk/gcc/testsuite/g++.dg/lookup/hidden-class15.C
trunk/gcc/testsuite/g++.dg/lookup/hidden-class16.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



[Bug c++/36019] [4.2/4.3/4.4 Regression] template parameter does not hide class name

2009-01-12 Thread dodji at gcc dot gnu dot org


--- Comment #8 from dodji at gcc dot gnu dot org  2009-01-12 22:50 ---
Fixed in trunk, gcc-4_3 and gcc-4_2.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36019



[Bug c++/38636] [4.2/4.3/4.4 regression] ICE with broken ctor declaration

2009-01-13 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-12-26 22:22:17 |2009-01-13 16:56:35
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38636



[Bug c++/35109] [4.2/4.3 Regression] ICE in lookup_name_real, at cp/name-lookup.c:4056

2009-01-14 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2009-01-14 13:10 ---
This is now fixed in trunk (gcc 4.4) so I have adjusted the summary.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.2/4.3/4.4 Regression] ICE|[4.2/4.3 Regression] ICE in
   |in lookup_name_real, at |lookup_name_real, at
   |cp/name-lookup.c:4056   |cp/name-lookup.c:4056


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35109



[Bug c++/38636] [4.2/4.3/4.4 regression] ICE with broken ctor declaration

2009-01-15 Thread dodji at gcc dot gnu dot org


--- Comment #2 from dodji at gcc dot gnu dot org  2009-01-15 13:01 ---
Subject: Bug 38636

Author: dodji
Date: Thu Jan 15 13:01:36 2009
New Revision: 143392

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143392
Log:
gcc/cp/ChangeLog:
2009-01-13  Dodji Seketeli  

PR c++/38636
* name-lookup.c (pushtag): Don't create members to types that are not
being created.

gcc/testsuite/ChangeLog:
2009-01-13  Dodji Seketeli  

PR c++/38636
* g++.dg/parse/crash50.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/parse/crash50.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38636



[Bug c++/26693] [4.2/4.3/4.4 regression] Access checks not performed for types in templates

2009-01-21 Thread dodji at gcc dot gnu dot org


--- Comment #8 from dodji at gcc dot gnu dot org  2009-01-21 16:15 ---
Subject: Bug 26693

Author: dodji
Date: Wed Jan 21 16:14:49 2009
New Revision: 143546

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143546
Log:
gcc/ChangeLog:
2009-01-21  Dodji Seketeli  

PR c++/26693
* c-decl.c: (clone_underlying_type): Move this  ...
* c-common.c (set_underlying_type): ... here.
Also, make sure the function  properly sets TYPE_STUB_DECL() on
the newly created typedef variant type.
(is_typedef_decl ): New entry point.
* tree.h: Added a new member member_types_needing_access_check to
struct tree_decl_non_common.
(set_underlying_type): New entry point.
(is_typedef_type): Likewise.

gcc/cp/ChangeLog/
2009-01-21  Dodji Seketeli  

PR c++/26693
* decl2.c (grokfield): when a typedef appears in a
class, create the typedef variant type node for it.
(save_template_attributes): Creating typedef variant type node
 here is now useless.
* decl.c (grokdeclarator): If the typedef'ed struct/class was
anonymous, set the proper type name to all its type variants.
* name-lookup.c (pushdecl_maybe_friend): Reuse the
set_underlying_type function to install typedef variant types.
* cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): New template accessor
macro.
(append_type_to_template_for_access_check): New entry points.
* semantics.c (check_accessibility_of_qualified_id):
When a typedef that is a member of a class appears in a template,
add it to the template. It will be ...
* pt.c (instantiate_class_template, instantiate_template ): ... access
checked at template instantiation time.
(tsubst): Handle the case of being called with NULL args.
(resolve_type_name_type): The type name should be the name of the
main type variant.
(append_type_to_template_for_access_check): New entry point.

gcc/testsuite/ChangeLog
2009-01-21  Dodji Seketeli  

PR c++/26693
* g++.dg/template/typedef11.C: New test.
* g++.dg/template/typedef12.C: Likewise.
* g++.dg/template/typedef13.C: Likewise.
* g++.dg/template/typedef14.C: Likewise.
* g++.dg/template/sfinae3.C: Compile this pedantically.
The only errors expected should be the one saying the typedef is ill
formed.
* g++.old-deja/g++.pt/typename8.C: Likewise.
* g++.dg/template/access11.C: Update this.

libstdc++-v3/ChangeLog:
2009-01-21  Dodji Seketeli  

* include/ext/bitmap_allocator.h: the typedefs should be made public
if we want them to be accessible. This has been revealed by the patch
that fixes PR c++/26693 in g++.


Added:
trunk/gcc/testsuite/g++.dg/template/typedef11.C
trunk/gcc/testsuite/g++.dg/template/typedef12.C
trunk/gcc/testsuite/g++.dg/template/typedef13.C
trunk/gcc/testsuite/g++.dg/template/typedef14.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-decl.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/access11.C
trunk/gcc/testsuite/g++.dg/template/sfinae3.C
trunk/gcc/testsuite/g++.old-deja/g++.pt/typename8.C
trunk/gcc/tree.h
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/ext/bitmap_allocator.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26693



[Bug c++/38930] [4.4 Regression] Revision 143546 failed to bootstrap on Linux/ia64

2009-01-21 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-01-21 19:37:52
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38930



[Bug c++/38930] [4.4 Regression] Revision 143546 failed to bootstrap

2009-01-21 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-01-21 22:25 ---
I think I have an idea of what's going on.

g++ is actually failing on the line:
typedef unsigned int uaddr __attribute__ ((mode (pointer)));
(in libjava/include/jvm.h:262, while compiling libjava/jni-libjvm.cc).

That's due to my changing grokfield (in decl2.c) to make it create typedef
variant variant types for typedef declarations. It appears that later down in
that function, the call to cplus_decl_attributes honours the mode (pointer)
attribute set specification. That attribute specification changes the TREE_TYPE
property of the typedef declaration, making it be an unsigned pointer.

Changing the TREE_TYPE like that invalidates an invariant condition of
typedefs, hence the ICE on the gcc_assert() in gen_typedef_die.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38930



[Bug c++/38930] [4.4 Regression] Revision 143546 failed to bootstrap

2009-01-21 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-01-21 22:27 ---
Created an attachment (id=17159)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17159&action=view)
Fix candidate

I think this patch should fix the problem.

I am testing it right now. It'll take a little while as I need to re-bootstrap
everything on my box. If you have a fast box could you please test it and tell
me if it works for you ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38930



[Bug c++/26693] [4.2/4.3/4.4 regression] Access checks not performed for types in templates

2009-01-21 Thread dodji at gcc dot gnu dot org


--- Comment #9 from dodji at gcc dot gnu dot org  2009-01-22 07:15 ---
Subject: Bug 26693

Author: dodji
Date: Thu Jan 22 07:15:41 2009
New Revision: 143562

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143562
Log:
Reverted commit 143546 related to PR c++/26693


Removed:
trunk/gcc/testsuite/g++.dg/template/typedef11.C
trunk/gcc/testsuite/g++.dg/template/typedef12.C
trunk/gcc/testsuite/g++.dg/template/typedef13.C
trunk/gcc/testsuite/g++.dg/template/typedef14.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-decl.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/decl2.c
trunk/gcc/cp/name-lookup.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/access11.C
trunk/gcc/testsuite/g++.dg/template/sfinae3.C
trunk/gcc/testsuite/g++.old-deja/g++.pt/typename8.C
trunk/gcc/tree.h
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/ext/bitmap_allocator.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26693



[Bug c++/38930] [4.4 Regression] typedef with attribute mode causes ICE in dwarf2

2009-01-22 Thread dodji at gcc dot gnu dot org


--- Comment #12 from dodji at gcc dot gnu dot org  2009-01-22 15:27 ---
I have reverted the patch.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|blocker |normal
   Priority|P1  |P3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38930



[Bug c++/17395] [4.5 Regression] Incorrect lookup for parameters

2009-05-06 Thread dodji at gcc dot gnu dot org


--- Comment #9 from dodji at gcc dot gnu dot org  2009-05-06 18:56 ---
I have submitted a patch for this at
http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00270.html.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17395



[Bug c++/17395] [4.5 Regression] Incorrect lookup for parameters

2009-05-06 Thread dodji at gcc dot gnu dot org


--- Comment #10 from dodji at gcc dot gnu dot org  2009-05-06 20:42 ---
Subject: Bug 17395

Author: dodji
Date: Wed May  6 20:41:52 2009
New Revision: 147201

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147201
Log:
2009-05-06  Dodji Seketeli  

gcc/cp/ChangeLog:
PR c++/17395
* pt.c (tsubst_copy) : We don't want to tsubst the
whole list of PARM_DECLs, just the current one.

gcc/testsuite/ChangeLog:
PR c++/17395
* g++.dg/template/call7.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/template/call7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17395



[Bug c++/17395] [4.5 Regression] Incorrect lookup for parameters

2009-05-06 Thread dodji at gcc dot gnu dot org


--- Comment #11 from dodji at gcc dot gnu dot org  2009-05-06 20:43 ---
Subject: Bug 17395

Author: dodji
Date: Wed May  6 20:43:41 2009
New Revision: 147202

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147202
Log:
2009-05-06  Dodji Seketeli  

gcc/cp/ChangeLog:
PR c++/17395
* pt.c (tsubst_copy) : We don't want to tsubst the
whole list of PARM_DECLs, just the current one.

gcc/testsuite/ChangeLog:
PR c++/17395
* g++.dg/template/call7.C: New test.


Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/call7.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/pt.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17395



[Bug c++/17395] [4.5 Regression] Incorrect lookup for parameters

2009-05-06 Thread dodji at gcc dot gnu dot org


--- Comment #12 from dodji at gcc dot gnu dot org  2009-05-06 20:47 ---
Fixed in 4.4 and 4.5. The patch won't apply to 4.3 as the code base has
diverged.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17395



[Bug debug/40109] New: Incorrect debug info nesting for typedef statements within namespaces

2009-05-11 Thread dodji at gcc dot gnu dot org
The following program:

namespace A{

  class B{
  };

  typedef A::B AB;
}

int main(){
  A::AB ab;
  return 0;
}

compiled with gcc generates the following debug info:
 ...
 <1><43>: Abbrev Number: 5 (DW_TAG_subprogram)
<44>   DW_AT_external: 1
<45>   DW_AT_name: (indirect string, offset: 0x4c): main
<49>   DW_AT_decl_file   : 1
<4a>   DW_AT_decl_line   : 10   
<4b>   DW_AT_type: <0x91>   
<4f>   DW_AT_low_pc  : 0x40053c 
<57>   DW_AT_high_pc : 0x400547 
<5f>   DW_AT_frame_base  : 0x0  (location list)
<63>   DW_AT_sibling : <0x91>   
 <2><67>: Abbrev Number: 6 (DW_TAG_lexical_block)
<68>   DW_AT_low_pc  : 0x400540 
<70>   DW_AT_high_pc : 0x400545 
 <3><78>: Abbrev Number: 7 (DW_TAG_typedef)
<79>   DW_AT_name: AB   
<7c>   DW_AT_decl_file   : 1
<7d>   DW_AT_decl_line   : 7
<7e>   DW_AT_type: <0x3b>   
...

The typedef tag <78> is a child of subprogram main instead of
namespace A.


-- 
   Summary:  Incorrect debug info nesting for typedef statements
within namespaces
   Product: gcc
   Version: 4.4.0
Status: UNCONFIRMED
      Severity: normal
  Priority: P3
 Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dodji at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109



[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-11 Thread dodji at gcc dot gnu dot org


--- Comment #1 from dodji at gcc dot gnu dot org  2009-05-11 18:29 ---
Created an attachment (id=17853)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17853&action=view)
Candidate fix

I have tested this patch. It bootstraps and passes regtest on trunk.

I need to test it on the branches.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109



[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-13 Thread dodji at gcc dot gnu dot org


--- Comment #2 from dodji at gcc dot gnu dot org  2009-05-13 14:58 ---
Patch submitted for review at
http://gcc.gnu.org/ml/gcc-patches/2009-05/msg00706.html.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

Summary| Incorrect debug info   |Incorrect debug info nesting
   |nesting for typedef |for typedef statements
   |statements within namespaces|within namespaces


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109



[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-13 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-05-13 21:53:27
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40007



[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-16 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-05-16 16:18 ---
Created an attachment (id=17884)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17884&action=view)
A candidate patch

I am testing this patch at the moment.
Could you please test it in your environment and tell me if it helps at all ?

Thanks.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40007



[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-16 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-05-16 16:39 ---
By the way, here what I think is happening.

During the parsing of 

template<>
 struct y : public x
 {
   typedef x::type z;
 };

We detect that x::type is a use of a typedef that is a member of the
class template x. We then wrongly append x::type to the representation of
template struct y so that we can perform access checks on the use
of x::type once we instantiate y. Later, during the instantiation
of template struct y into y we wrongly try to perform access
checks of x::type even if x::type has no business with the
instantiation of template struct y;

In short, the typedef use x::type should be added (for access checking
purposes) to the representation of the specialized template<> struct y,
not to the representation of the most general template struct y.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40007



[Bug c++/40044] ICE when resolves overloaded functions

2009-05-16 Thread dodji at gcc dot gnu dot org


--- Comment #1 from dodji at gcc dot gnu dot org  2009-05-16 18:56 ---
ICE confirmed on 4.3.2.

On, trunk I get the following error message:
test.cc: In function ‘int main()’:
test.cc:12: sorry, unimplemented: mangling template_id_expr

The input file with numbered line is:

 1  template
 2  void f(T*);
 3  
 4  template
 5  struct A {};
 6  
 7  template
 8  void g(A > *);
 9  
10  int main()
11  {
12g((A >*)0);
13  }
14  


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 CC|    |dodji at gcc dot gnu dot org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-05-16 18:56:45
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40044



[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2009-05-18 19:20 ---
Subject: Bug 40109

Author: dodji
Date: Mon May 18 19:19:52 2009
New Revision: 147674

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147674
Log:
Fix for PR debug/40109

gcc/ChangeLog:
PR debug/40109
* dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
child of the containing namespace's DIE.

gcc/testsuite/ChangeLog:
PR debug/40109
* g++.dg/debug/dwarf2/nested-1.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/nested-1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109



[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-05-18 19:24 ---
Subject: Bug 40109

Author: dodji
Date: Mon May 18 19:24:17 2009
New Revision: 147675

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147675
Log:
Candidate Fix for PR debug/40109

gcc/ChangeLog:
PR debug/40109
* dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
child of the containing namespace's DIE.

gcc/testsuite/ChangeLog:
PR debug/40109
* g++.dg/debug/dwarf2/nested-1.C: New test.


Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/nested-1.C
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/dwarf2out.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109



[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-05-18 19:26 ---
Subject: Bug 40109

Author: dodji
Date: Mon May 18 19:26:41 2009
New Revision: 147676

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147676
Log:
Fix for PR debug/40109

gcc/ChangeLog:
PR debug/40109
* dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
child of the containing namespace's DIE.

gcc/testsuite/ChangeLog:
PR debug/40109
* g++.dg/debug/dwarf2/nested-1.C: New test.


Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/dwarf2/nested-1.C
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/dwarf2out.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109



[Bug debug/40109] Incorrect debug info nesting for typedef statements within namespaces

2009-05-18 Thread dodji at gcc dot gnu dot org


--- Comment #6 from dodji at gcc dot gnu dot org  2009-05-18 19:29 ---
Fixed in 4.5, 4.4 and 4.3.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40109



[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-26 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2009-05-26 10:35 ---
Subject: Bug 40007

Author: dodji
Date: Tue May 26 10:35:16 2009
New Revision: 147866

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147866
Log:
Fix PR c++/40007

gcc/cp/ChangeLog:
PR c++/40007
* cp-tree.h (MEMBER_TYPES_NEEDING_ACCESS_CHECK): Remove this accessor.
(TI_TYPEDEFS_NEEDING_ACCESS_CHECKING): New accessor.
(get_types_needing_access_check): Declare new entry point.
* pt.c (append_type_to_template_for_access_check_1,
get_types_needing_access_check): New functions.
(perform_typedefs_access_check): Accept FUNCTION_DECLs and
RECORD_TYPEs rather than TEMPLATE_DECLs. Use the new
get_types_needing_access_check, no more
MEMBER_TYPES_NEEDING_ACCESS_CHECK.
(instantiate_class_template): Set input_location to the source
location of the most specialized template definition.
Perform access check using the RECORD_TYPE of the template, not its
associated most generic TEMPLATE_DECL.
(append_type_to_template_for_access_check): Augment function
comments. Use the new get_types_needing_access_check, not
MEMBER_TYPE_NEEDING_ACCESS_CHECK. Use the new
append_type_to_template_for_access_check_1 subroutine.

gcc/testsuite/ChangeLog:
PR c++/40007
* g++.dg/template/typedef18.C: New test.
* g++.dg/template/typedef19.C: Likewise.
* g++.dg/template/typedef20.C: Likewise.
* g++.dg/template/access11.C: Adjust.


Added:
trunk/gcc/testsuite/g++.dg/template/typedef18.C
trunk/gcc/testsuite/g++.dg/template/typedef19.C
trunk/gcc/testsuite/g++.dg/template/typedef20.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/access11.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40007



[Bug c++/40007] [4.5 regression] specialization causes access problem in primary template

2009-05-26 Thread dodji at gcc dot gnu dot org


--- Comment #8 from dodji at gcc dot gnu dot org  2009-05-26 10:36 ---
Fixed in trunk.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40007



[Bug c++/39754] [4.5 Regression] ICE: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9248

2009-05-26 Thread dodji at gcc dot gnu dot org


--- Comment #8 from dodji at gcc dot gnu dot org  2009-05-26 16:58 ---
A patch was submitted at
http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01655.html.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39754



[Bug c++/39754] [4.5 Regression] ICE: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9248

2009-05-28 Thread dodji at gcc dot gnu dot org


--- Comment #9 from dodji at gcc dot gnu dot org  2009-05-28 11:24 ---
Subject: Bug 39754

Author: dodji
Date: Thu May 28 11:24:18 2009
New Revision: 147951

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147951
Log:
Fix for PR c++/PR39754

gcc/cp/ChangeLog:
PR c++/39754
* cp-tree.h (canonical_type_variant): Remove this function declaration.
(strip_typedefs): New function declaration.
* tree.c (strip_typedefs): New function definition.
(canonical_type_variant): Remove function definition.
* cvt.c (convert_from_reference): No need to use
canonical_type_variant.
* typeck.c (cp_build_indirect_ref): Likewise.
* error.c (dump_template_bindings): Use strip_typedefs instead of
canonical_type_variant.
* pt.c (convert_template_argument, unify): Likewise.
* mangle.c (canonicalize_for_substitution): Don't use
canonical_type_variant.

gcc/testsuite/ChangeLog:
PR c++/39754
* g++.dg/template/canon-type-1.C: New test.
* g++.dg/template/canon-type-2.C: Likewise.
* g++.dg/template/canon-type-3.C: Likewise.
* g++.dg/template/canon-type-4.C: Likewise.
* g++.dg/template/canon-type-5.C: Likewise.
* g++.dg/template/canon-type-6.C: Likewise.
* g++.dg/template/canon-type-7.C: Likewise.


Added:
trunk/gcc/testsuite/g++.dg/template/canon-type-1.C
trunk/gcc/testsuite/g++.dg/template/canon-type-2.C
trunk/gcc/testsuite/g++.dg/template/canon-type-3.C
trunk/gcc/testsuite/g++.dg/template/canon-type-4.C
trunk/gcc/testsuite/g++.dg/template/canon-type-5.C
trunk/gcc/testsuite/g++.dg/template/canon-type-6.C
trunk/gcc/testsuite/g++.dg/template/canon-type-7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/cvt.c
trunk/gcc/cp/error.c
trunk/gcc/cp/mangle.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/tree.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39754



[Bug c++/39754] [4.5 Regression] ICE: tree check: accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:9248

2009-05-28 Thread dodji at gcc dot gnu dot org


--- Comment #10 from dodji at gcc dot gnu dot org  2009-05-28 12:42 ---
Fixed in gcc 4.5.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39754



[Bug c++/40684] ICE in tsubst

2009-07-08 Thread dodji at gcc dot gnu dot org


--- Comment #1 from dodji at gcc dot gnu dot org  2009-07-08 20:11 ---
I could reproduce on trunk.

I am testing the patchlet below:

diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index b4bd465..d042f98 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -12949,8 +12949,9 @@ type_unification_real (tree tparms,
 to explicitly check cxx_dialect here.  */
   if (TREE_PURPOSE (TREE_VEC_ELT (tparms, i)))
 {
-  tree arg = tsubst (TREE_PURPOSE (TREE_VEC_ELT (tparms, i)), 
- targs, tf_none, NULL_TREE);
+  tree arg = tsubst_template_arg
+   (TREE_PURPOSE (TREE_VEC_ELT (tparms, i)),
+targs, tf_none, NULL_TREE);
   if (arg == error_mark_node)
 return 1;
   else


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||dodji at gcc dot gnu dot org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-07-08 20:11:16
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40684



[Bug c++/40684] ICE in tsubst

2009-07-09 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2009-07-09 17:56 ---
Subject: Bug 40684

Author: dodji
Date: Thu Jul  9 17:56:44 2009
New Revision: 149423

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149423
Log:
2009-07-09  Dodji Seketeli  

gcc/cp/ChangeLog:
PR c++/40684
* pt.c (type_unification_real): Use tsubst_template_arg instead
of tsubst to substitute default template arguments.

gcc/testsuite/ChangeLog:
PR c++/40684
* g++.dg/template/unify11.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/template/unify11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40684



[Bug c++/40684] ICE in tsubst

2009-07-09 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-07-09 18:01 ---
Subject: Bug 40684

Author: dodji
Date: Thu Jul  9 18:00:58 2009
New Revision: 149425

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149425
Log:
2009-07-09  Dodji Seketeli  

gcc/cp/ChangeLog:
PR c++/40684
* pt.c (type_unification_real): Use tsubst_template_arg instead
of tsubst to substitute default template arguments.

gcc/testsuite/ChangeLog:
PR c++/40684
* gcc/testsuite/g++.dg/template/unify11.C: New test.


Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/unify11.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/pt.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40684



[Bug c++/40684] ICE in tsubst

2009-07-09 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-07-09 18:02 ---
Fixed in 4.4.1 and 4.5.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40684



[Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117

2009-07-10 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2009-07-10 13:44 ---
I could reproduce on trunk.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2009-07-10 08:35:45 |2009-07-10 13:44:51
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40705



[Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117

2009-07-13 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-07-13 17:41 ---
A candidate patch was posted to
http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00743.html.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40705



[Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117

2009-07-14 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-07-14 15:02 ---
Subject: Bug 40705

Author: dodji
Date: Tue Jul 14 15:01:55 2009
New Revision: 149628

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149628
Log:
2009-07-14  Dodji Seketeli  

gcc/ChangeLog:
PR debug/40705
PR c++/403057
* dwarf2.out.c (gen_type_die_with_usage): Added comment.

gcc/cp/ChangeLog:
PR debug/40705
PR c++/403057
* decl2.c (grokfield): Don't call set_underlying_type on typedef
decls that are type names.

gcc/testsuite/ChangeLog:
PR debug/40705
PR c++/403057
* g++.dg/debug/dwarf2/typedef1.C: New test.
* g++.dg/other/typedef3.C: Likewise.


Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
trunk/gcc/testsuite/g++.dg/other/typedef3.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40705



[Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117

2009-07-14 Thread dodji at gcc dot gnu dot org


--- Comment #6 from dodji at gcc dot gnu dot org  2009-07-14 15:19 ---
Fixed in gcc 4.5


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40705



[Bug c++/40357] [4.5 Regression] compiler hang for C++ code

2009-07-14 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-07-14 15:29 ---
Fixed by the patch for PR debug/40705


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40357



[Bug c++/40780] [4.4/4.5 Regression] ICE in gimplify_conversion

2009-07-17 Thread dodji at gcc dot gnu dot org


--- Comment #2 from dodji at gcc dot gnu dot org  2009-07-17 08:15 ---
Richard, could you please have a look at this one ?
Thanks in advance :-)


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rguenther at suse dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40780



[Bug debug/39706] namespaces represented incorrectly in debug_pubnames

2009-07-27 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-07-27 14:32:12
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39706



[Bug debug/39708] add a debug_privnames section

2009-07-27 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-07-27 14:32:42
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39708



[Bug debug/39705] enum constants don't appear in debug_pubnames

2009-07-27 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-07-27 14:36:15
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39705



[Bug c++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure

2009-08-04 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-08-04 12:03:16
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug debug/39706] namespaces represented incorrectly in debug_pubnames

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-08-04 12:27 ---
Subject: Bug 39706

Author: dodji
Date: Tue Aug  4 12:26:01 2009
New Revision: 150452

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150452
Log:
2009-08-04  Dodji Seketeli  

gcc/cp/ChangeLog:
PR debug/39706
* error.c (lang_decl_name): Print qualified names for decls
in  namespace scope.

gcc/testsuite/ChangeLog:
PR debug/39706
* g++.dg/debug/dwarf2/pubnames-1.C: New test.


Added:
trunk/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/error.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39706



[Bug debug/39706] namespaces represented incorrectly in debug_pubnames

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-08-04 12:31 ---
Fixed in 4.4 and 4.5. Waiting for 4.3 to unfreeze ...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39706



[Bug debug/39706] namespaces represented incorrectly in debug_pubnames

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #6 from dodji at gcc dot gnu dot org  2009-08-04 12:37 ---
Subject: Bug 39706

Author: dodji
Date: Tue Aug  4 12:28:27 2009
New Revision: 150453

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150453
Log:
2009-08-04  Dodji Seketeli  

gcc/cp/ChangeLog:
PR debug/39706
* error.c (lang_decl_name): Print qualified names for decls
in  namespace scope.

gcc/testsuite/ChangeLog:
PR debug/39706
* g++.dg/debug/dwarf2/pubnames-1.C: New test.


Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/error.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39706



[Bug c++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #1 from dodji at gcc dot gnu dot org  2009-08-04 14:21 ---
Submitted a patch to http://gcc.gnu.org/ml/gcc-patches/2009-08/msg00185.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug debug/39706] namespaces represented incorrectly in debug_pubnames

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2009-08-04 16:59 ---
Subject: Bug 39706

Author: dodji
Date: Tue Aug  4 16:59:11 2009
New Revision: 150462

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150462
Log:
2009-08-04  Dodji Seketeli  

gcc/cp/ChangeLog:
PR debug/39706
* error.c (lang_decl_name): Print qualified names for decls
in  namespace scope.

gcc/testsuite/ChangeLog:
PR debug/39706
* g++.dg/debug/dwarf2/pubnames-1.C: New test.


Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/error.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39706



[Bug debug/39706] namespaces represented incorrectly in debug_pubnames

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #8 from dodji at gcc dot gnu dot org  2009-08-04 17:06 ---
Fixed in 4.3 as well.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39706



[Bug c++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #2 from dodji at gcc dot gnu dot org  2009-08-04 19:50 ---
Subject: Bug 39987

Author: dodji
Date: Tue Aug  4 19:49:48 2009
New Revision: 150467

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150467
Log:
2009-08-04  Dodji Seketeli  

gcc/cp/ChangeLog:
PR c++/39987
* pt.c (tsubst_default_argument): Let access checks of the
default argument happen in the context of the current function.

gcc/testsuite/ChangeLog:
PR c++/39987
* g++.dg/overload/defarg4.C: New test.


Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug c++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2009-08-04 19:59 ---
Subject: Bug 39987

Author: dodji
Date: Tue Aug  4 19:59:48 2009
New Revision: 150468

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150468
Log:
2009-08-04  Dodji Seketeli  

gcc/cp/ChangeLog:
PR c++/39987
* pt.c (tsubst_default_argument): Let access checks of the
default argument happen in the context of the current function.

gcc/testsuite/ChangeLog:
PR c++/39987
* g++.dg/overload/defarg4.C: New test.


Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/pt.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug c++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure

2009-08-04 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2009-08-04 20:01 ---
Fixed in 4.5 and 4.4 branches. Won't be fixed in 4.3 as this fix depends on the
fix for PR c++/37971, and that later fix hasn't been applied to the 4.3 branch.

Can this bug be closed still ?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug debug/40990] bad .debug_pubnames entry from gcj

2009-08-06 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-08-06 19:40:07
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40990



[Bug c++/40866] [4.5 Regression] ICE in create_tmp_var, at gimplify.c:504

2009-08-06 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2009-07-27 09:41:56 |2009-08-06 19:42:52
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40866



[Bug c++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure

2009-08-07 Thread dodji at gcc dot gnu dot org


--- Comment #6 from dodji at gcc dot gnu dot org  2009-08-07 13:13 ---
Subject: Bug 39987

Author: dodji
Date: Fri Aug  7 13:13:12 2009
New Revision: 150568

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150568
Log:
2009-08-07  Dodji Seketeli  

PR c++/39987
* gcc/testsuite/g++.dg/overload/defarg4.C: Oops, forgot to add
the testcase.


Added:
trunk/gcc/testsuite/g++.dg/overload/defarg4.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug c++/39987] [4.3/4.4/4.5 Regression] Rejects default argument that is a template via access failure

2009-08-07 Thread dodji at gcc dot gnu dot org


--- Comment #7 from dodji at gcc dot gnu dot org  2009-08-07 13:16 ---
Subject: Bug 39987

Author: dodji
Date: Fri Aug  7 13:15:43 2009
New Revision: 150569

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150569
Log:
2009-08-07  Dodji Seketeli  

PR c++/39987
* gcc/testsuite/g++.dg/overload/defarg4.C: Oops, I foorgot to add this.


Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/overload/defarg4.C


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug c++/40866] [4.5 Regression] ICE in create_tmp_var, at gimplify.c:504

2009-08-10 Thread dodji at gcc dot gnu dot org


--- Comment #5 from dodji at gcc dot gnu dot org  2009-08-10 07:16 ---
Subject: Bug 40866

Author: dodji
Date: Mon Aug 10 07:16:08 2009
New Revision: 150615

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150615
Log:
2009-08-10  Dodji Seketeli  

gcc/ChangeLog:
PR c++/40866
* tree-inline.c (copy_statement_list): The resulting copy shouldn't
loose the original type of the statement list.

gcc/testsuite/ChangeLog:
PR c++/40866
* g++.dg/expr/stmt-expr-1.C: New test.



Added:
trunk/gcc/testsuite/g++.dg/expr/stmt-expr-1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-inline.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40866



[Bug c++/40866] [4.5 Regression] ICE in create_tmp_var, at gimplify.c:504

2009-08-10 Thread dodji at gcc dot gnu dot org


--- Comment #6 from dodji at gcc dot gnu dot org  2009-08-10 07:17 ---
Fixed in 4.5


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40866



[Bug c++/39987] [4.3 Regression] Rejects default argument that is a template via access failure

2009-08-10 Thread dodji at gcc dot gnu dot org


--- Comment #9 from dodji at gcc dot gnu dot org  2009-08-10 10:09 ---
Okay,I have adjusted the regression markers.
I won't apply the patch to 4.3 for now though.

To apply this patch to 4.3, one would need to backport the patch
http://gcc.gnu.org/viewcvs?view=rev&revision=142628 to 4.3 first.


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|dodji at gcc dot gnu dot org|unassigned at gcc dot gnu
   ||dot org
 Status|ASSIGNED|NEW
Summary|[4.3/4.4/4.5 Regression]|[4.3 Regression] Rejects
   |Rejects default argument|default argument that is a
   |that is a template via  |template via access failure
   |access failure  |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39987



[Bug debug/40990] bad .debug_pubnames entry from gcj

2009-08-11 Thread dodji at gcc dot gnu dot org


--- Comment #1 from dodji at gcc dot gnu dot org  2009-08-11 18:40 ---
Subject: Bug 40990

Author: dodji
Date: Tue Aug 11 18:39:54 2009
New Revision: 150659

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150659
Log:
Fix PR debug/40990

PR debug/40990
* lang.c (put_decl_node): Outputs different level of information
depending on the verbosity level.

Modified:
trunk/gcc/java/ChangeLog
trunk/gcc/java/lang.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40990



[Bug debug/40990] bad .debug_pubnames entry from gcj

2009-08-12 Thread dodji at gcc dot gnu dot org


--- Comment #2 from dodji at gcc dot gnu dot org  2009-08-12 09:02 ---
Subject: Bug 40990

Author: dodji
Date: Wed Aug 12 09:02:17 2009
New Revision: 150677

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150677
Log:
Fix PR debug/40990

PR debug/40990
* lang.c (put_decl_node): Outputs different level of information
depending on the verbosity level.

Modified:
branches/gcc-4_4-branch/gcc/java/ChangeLog
branches/gcc-4_4-branch/gcc/java/lang.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40990



[Bug debug/40990] bad .debug_pubnames entry from gcj

2009-08-12 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2009-08-12 09:06 ---
Fixed in 4.4 and 4.5


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40990



[Bug c++/36741] [4.3/4.4 regression] Bogus "large integer implicitly truncated" passing size_t constant to new

2008-08-12 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2008-07-10 14:24:55 |2008-08-12 13:25:52
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36741



  1   2   3   4   5   6   >