public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7674: unjustified syntax error when a class contains a reference AND a pointer to member
@ 2002-09-13 15:15 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-09-13 15:15 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, ulrich.lauther

Synopsis: unjustified syntax error when a class contains a reference AND a pointer to member

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 15:15:55 2002
State-Changed-Why:
    confirmed as a regression

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7674


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

* Re: c++/7674: unjustified syntax error when a class contains a reference AND a pointer to member
@ 2002-10-16 12:42 mmitchel
  0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-10-16 12:42 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, ulrich.lauther

Synopsis: unjustified syntax error when a class contains a reference AND a pointer to member

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Wed Oct 16 12:42:29 2002
State-Changed-Why:
    Fixed in GCC 3.2.1.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7674


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

* c++/7674: unjustified syntax error when a class contains a reference AND a pointer to member
@ 2002-08-21  3:06 ulrich.lauther
  0 siblings, 0 replies; 3+ messages in thread
From: ulrich.lauther @ 2002-08-21  3:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7674
>Category:       c++
>Synopsis:       unjustified syntax error when a class contains a reference AND a pointer to member
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 21 02:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Lauther
>Release:        Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs Configured with: /usr/local/src/gcc-3.2/configure --enable-languages=c,c++ Thread model: posix gcc version 3.2
>Organization:
>Environment:
Linux i686, kernel 2.4.5
>Description:
The code attached compiled with g++ bug.C gives:
bug.C: In function `int main()':
bug.C:23: uninitialized const member `components::m_g'


 
>How-To-Repeat:
g++ bug.C

Where bug.C contains:

class hgraph_base {
  public:
  int foo;
};

class Hnode;


class components {

  hgraph_base& m_g;
  int Hnode::* m_node_nr;

public:
  inline components(hgraph_base& pg) : m_g (pg) {
  }
};

int main () {
  
  hgraph_base base;
  
  components bi(base);
  
  return 0;
}
>Fix:
change hgraph_base& into hgraph_base* (and adapt the rest of the program) or comment out the line 
int Hnode::* m_node_nr;
(this is - of course - not really a fix, but might hint at the problem)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="bug.C"
Content-Disposition: inline; filename="bug.C"

class hgraph_base {
  public:
    int foo;
};

class Hnode;


class components {

  hgraph_base&                m_g;
  int Hnode::*                m_node_nr;

public:
  inline components(hgraph_base& pg) : m_g (pg) {
  }
};

int main () {
  
  hgraph_base base;
  
  components bi(base);
  
  return 0;
}


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

end of thread, other threads:[~2002-10-16 19:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 15:15 c++/7674: unjustified syntax error when a class contains a reference AND a pointer to member nathan
  -- strict thread matches above, loose matches on Subject: below --
2002-10-16 12:42 mmitchel
2002-08-21  3:06 ulrich.lauther

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).