public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12824] New: Parse error when casting to typedef'd type  in nested constructor argument
@ 2003-10-29 13:35 tony dot berry at misys dot com
  2003-10-29 14:43 ` [Bug c++/12824] " lerdsuwa at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tony dot berry at misys dot com @ 2003-10-29 13:35 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Parse error when casting to typedef'd type  in nested
                    constructor argument
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tony dot berry at misys dot com
                CC: gcc-bugs at gcc dot gnu dot org

Output from terminal session on AIX 5.1, using GCC 3.3. Bug originally observed 
in GCC 3.2.x on Red Hat Linux 9. The simplest example I have of the problem 
requires a cast, to a type that has been defined with 'typedef', within two 
levels of class constructor call.

% cat bug.cxx
typedef int     integer;
class   Integer { public: Integer (integer) {} };
class   Number  { public: Number (const Integer&) {} };
static  void    Bug ()
{
        Number  x (Integer ((integer)0));
        /*
        Integer i ((integer)0); Number y (i);           // That's OK !
        Number  z (Integer ((int)0));                   // That's OK, too.
        */
}
% gcc -v
Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/specs
Configured with: ../gcc-3.3/configure 
Thread model: aix
gcc version 3.3
% g++ -c bug.cxx
bug.cxx: In function `void Bug()':
bug.cxx:6: error: parse error before numeric constant


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

* [Bug c++/12824] Parse error when casting to typedef'd type  in nested constructor argument
  2003-10-29 13:35 [Bug c++/12824] New: Parse error when casting to typedef'd type in nested constructor argument tony dot berry at misys dot com
@ 2003-10-29 14:43 ` lerdsuwa at gcc dot gnu dot org
  2003-10-29 14:50 ` bangerth at dealii dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2003-10-29 14:43 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


lerdsuwa at gcc dot gnu dot org changed:

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


------- Additional Comments From lerdsuwa at gcc dot gnu dot org  2003-10-29 14:31 -------
This is fixed in the CVS.  It will be released in the future as GCC 3.4.


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

* [Bug c++/12824] Parse error when casting to typedef'd type  in nested constructor argument
  2003-10-29 13:35 [Bug c++/12824] New: Parse error when casting to typedef'd type in nested constructor argument tony dot berry at misys dot com
  2003-10-29 14:43 ` [Bug c++/12824] " lerdsuwa at gcc dot gnu dot org
@ 2003-10-29 14:50 ` bangerth at dealii dot org
  2003-12-09 18:38 ` dhazeghi at yahoo dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2003-10-29 14:50 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From bangerth at dealii dot org  2003-10-29 14:44 -------
This is in the frequently-reported known bugs sections, BTW.
W.


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

* [Bug c++/12824] Parse error when casting to typedef'd type  in nested constructor argument
  2003-10-29 13:35 [Bug c++/12824] New: Parse error when casting to typedef'd type in nested constructor argument tony dot berry at misys dot com
  2003-10-29 14:43 ` [Bug c++/12824] " lerdsuwa at gcc dot gnu dot org
  2003-10-29 14:50 ` bangerth at dealii dot org
@ 2003-12-09 18:38 ` dhazeghi at yahoo dot com
  2004-04-21  1:35 ` pinskia at gcc dot gnu dot org
  2004-04-21  1:35 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 18:38 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4


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


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

* [Bug c++/12824] Parse error when casting to typedef'd type  in nested constructor argument
  2003-10-29 13:35 [Bug c++/12824] New: Parse error when casting to typedef'd type in nested constructor argument tony dot berry at misys dot com
                   ` (3 preceding siblings ...)
  2004-04-21  1:35 ` pinskia at gcc dot gnu dot org
@ 2004-04-21  1:35 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21  1:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-21 01:30 -------
Reopening to mark as a dup of ...

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


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


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

* [Bug c++/12824] Parse error when casting to typedef'd type  in nested constructor argument
  2003-10-29 13:35 [Bug c++/12824] New: Parse error when casting to typedef'd type in nested constructor argument tony dot berry at misys dot com
                   ` (2 preceding siblings ...)
  2003-12-09 18:38 ` dhazeghi at yahoo dot com
@ 2004-04-21  1:35 ` pinskia at gcc dot gnu dot org
  2004-04-21  1:35 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21  1:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-21 01:31 -------
bug 11796.

*** This bug has been marked as a duplicate of 11796 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2004-04-21  1:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-29 13:35 [Bug c++/12824] New: Parse error when casting to typedef'd type in nested constructor argument tony dot berry at misys dot com
2003-10-29 14:43 ` [Bug c++/12824] " lerdsuwa at gcc dot gnu dot org
2003-10-29 14:50 ` bangerth at dealii dot org
2003-12-09 18:38 ` dhazeghi at yahoo dot com
2004-04-21  1:35 ` pinskia at gcc dot gnu dot org
2004-04-21  1:35 ` pinskia at gcc dot gnu dot 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).