public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E'
@ 2012-10-12 17:01 redi at gcc dot gnu.org
  2012-10-12 17:02 ` [Bug c++/54913] " redi at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-10-12 17:01 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54913
           Summary: [4.8 Regression] '#'indirect_ref' not supported by
                    dump_decl#<declaration error>' is not a member of 'E'
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


struct Node { };

struct E
{
    class K {};
    static const K &N;

    int f(Node&, const K&);
};

template<typename T>
struct R : Node
{
        R(E &g)
        : r(g.f(*this,E::N))
        {}

    int r;
};


int main()
{
    E e;
    R<int> n(e);
}


e.cc: In instantiation of 'R<T>::R(E&) [with T = int]':
e.cc:25:15:   required from here
e.cc:15:21: error: '#'indirect_ref' not supported by dump_decl#<declaration
error>' is not a member of 'E'
  : r(g.f(*this,E::N))
                     ^


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E'
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
@ 2012-10-12 17:02 ` redi at gcc dot gnu.org
  2012-10-12 17:13 ` paolo.carlini at oracle dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-10-12 17:02 UTC (permalink / raw)
  To: gcc-bugs


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.3, 4.7.1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-12 17:02:17 UTC ---
Fails with gcc version 4.8.0 20121007 (experimental) (GCC)

The code should be accepted, and the diagnostic should make sense!


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E'
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
  2012-10-12 17:02 ` [Bug c++/54913] " redi at gcc dot gnu.org
@ 2012-10-12 17:13 ` paolo.carlini at oracle dot com
  2012-10-13  0:00 ` redi at gcc dot gnu.org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-12 17:13 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-12 17:13:08 UTC ---
The diagnostic issue is known (PR51413). Can you please figure out when it
started?


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E'
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
  2012-10-12 17:02 ` [Bug c++/54913] " redi at gcc dot gnu.org
  2012-10-12 17:13 ` paolo.carlini at oracle dot com
@ 2012-10-13  0:00 ` redi at gcc dot gnu.org
  2012-10-13 13:35 ` redi at gcc dot gnu.org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-10-13  0:00 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-13 00:00:00 UTC ---
I'll bisect ...


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E'
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-10-13  0:00 ` redi at gcc dot gnu.org
@ 2012-10-13 13:35 ` redi at gcc dot gnu.org
  2012-10-13 17:17 ` [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-10-13 13:35 UTC (permalink / raw)
  To: gcc-bugs


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-13 13:35:23 UTC ---
d0b4bf064cc775c510f804bee8394067530cc2bb is the first bad commit
commit d0b4bf064cc775c510f804bee8394067530cc2bb
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Aug 31 02:50:18 2012 +0000

        * semantics.c (finish_qualified_id_expr): Handle building up a
        non-dependent SCOPE_REF here.
        (finish_id_expression): Not here.
        * error.c (dump_decl) [SCOPE_REF]: Only pass TFF_UNQUALIFIED_NAME.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190829
138bc75d-0d04-0410-961f-82ee72b054a4


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-10-13 13:35 ` redi at gcc dot gnu.org
@ 2012-10-13 17:17 ` redi at gcc dot gnu.org
  2012-10-15  9:52 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: redi at gcc dot gnu.org @ 2012-10-13 17:17 UTC (permalink / raw)
  To: gcc-bugs


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.8 Regression]            |[4.8 Regression] qualified
                   |'#'indirect_ref' not        |lookup in ctor of class
                   |supported by                |template fails to find
                   |dump_decl#<declaration      |static member of reference
                   |error>' is not a member of  |type
                   |'E'                         |

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-13 17:17:37 UTC ---
Reduced:

struct E
{
  static const int& e;
};

template<typename>
struct R
{
  R() { E::e; }
};

R<int> r;

The error goes away unless:

 - E::e is a reference
 - R is a template
 - the lookup is in a constructor


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-10-13 17:17 ` [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type redi at gcc dot gnu.org
@ 2012-10-15  9:52 ` rguenth at gcc dot gnu.org
  2012-12-03 15:52 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-15  9:52 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-10-15  9:52 ` rguenth at gcc dot gnu.org
@ 2012-12-03 15:52 ` rguenth at gcc dot gnu.org
  2012-12-06 15:30 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-12-03 15:52 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-12-03
     Ever Confirmed|0                           |1

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2012-12-03 15:52:31 UTC ---
Confirmed.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-12-03 15:52 ` rguenth at gcc dot gnu.org
@ 2012-12-06 15:30 ` jason at gcc dot gnu.org
  2012-12-06 20:21 ` jason at gcc dot gnu.org
  2012-12-06 20:23 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2012-12-06 15:30 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2012-12-06 15:30 ` jason at gcc dot gnu.org
@ 2012-12-06 20:21 ` jason at gcc dot gnu.org
  2012-12-06 20:23 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2012-12-06 20:21 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-12-06 20:21:01 UTC ---
Author: jason
Date: Thu Dec  6 20:20:52 2012
New Revision: 194266

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=194266
Log:
    PR c++/54913
    * semantics.c (finish_qualified_id_expr): convert_from_reference
    after building a SCOPE_REF.

Added:
    trunk/gcc/testsuite/g++.dg/template/qualified-id6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
  2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2012-12-06 20:21 ` jason at gcc dot gnu.org
@ 2012-12-06 20:23 ` jason at gcc dot gnu.org
  9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu.org @ 2012-12-06 20:23 UTC (permalink / raw)
  To: gcc-bugs


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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-12-06 20:23:05 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-12-06 20:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-12 17:01 [Bug c++/54913] New: [4.8 Regression] '#'indirect_ref' not supported by dump_decl#<declaration error>' is not a member of 'E' redi at gcc dot gnu.org
2012-10-12 17:02 ` [Bug c++/54913] " redi at gcc dot gnu.org
2012-10-12 17:13 ` paolo.carlini at oracle dot com
2012-10-13  0:00 ` redi at gcc dot gnu.org
2012-10-13 13:35 ` redi at gcc dot gnu.org
2012-10-13 17:17 ` [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type redi at gcc dot gnu.org
2012-10-15  9:52 ` rguenth at gcc dot gnu.org
2012-12-03 15:52 ` rguenth at gcc dot gnu.org
2012-12-06 15:30 ` jason at gcc dot gnu.org
2012-12-06 20:21 ` jason at gcc dot gnu.org
2012-12-06 20:23 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).