public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14549] New: g++: parse-error on valid
@ 2004-03-12  9:00 smelkov at mph1 dot phys dot spbu dot ru
  2004-03-12 15:16 ` [Bug c++/14549] " bangerth at dealii dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: smelkov at mph1 dot phys dot spbu dot ru @ 2004-03-12  9:00 UTC (permalink / raw)
  To: gcc-bugs

I've got parse-error on valid code: 
 
---g++-parse-bug.cpp--- 
struct const_raw_data 
{ 
    const_raw_data(const void* block, unsigned size); 
}; 
 
 
void packet_tx_1() 
{ 
    char  data[] = { 'A', 'B', 'C' }; 
 
    const_raw_data  ( &data[0], 3); 
} 
---------------------------------- 
 
[kirr@tugrik test]$ g++ -Wall -c g++-parse-bug.cpp  
g++-parse-bug.cpp: In function `void packet_tx_1()': 
g++-parse-bug.cpp:11: error: parse error before `,' token 
g++-parse-bug.cpp:9: warning: unused variable `char data[3]' 
 
[kirr@tugrik test]$ g++ -v 
Reading specs from /usr/local/gcc-3.3.3/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs 
Configured with: ../gcc-3.3.3/configure --prefix=/usr/local/gcc-3.3.3 --enable-threads=posix 
--enable-languages=c,c++,f77 --enable-checking --disable-nls 
Thread model: posix 
gcc version 3.3.3

-- 
           Summary: g++: parse-error on valid
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: smelkov at mph1 dot phys dot spbu dot ru
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/14549] g++: parse-error on valid
  2004-03-12  9:00 [Bug c++/14549] New: g++: parse-error on valid smelkov at mph1 dot phys dot spbu dot ru
@ 2004-03-12 15:16 ` bangerth at dealii dot org
  2004-04-21  1:40 ` pinskia at gcc dot gnu dot org
  2004-04-21  1:46 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2004-03-12 15:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bangerth at dealii dot org  2004-03-12 15:16 -------
This is another instance of the old parser getting things wrong. See 
the links about well-known bugs on http://gcc.gnu.org/bugs.html. 
 
This is fixed in 3.4 and mainline, though. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
           Keywords|                            |rejects-valid
      Known to fail|                            |3.2.3 3.3.3
      Known to work|                            |3.4.0 3.5.0
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


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


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

* [Bug c++/14549] g++: parse-error on valid
  2004-03-12  9:00 [Bug c++/14549] New: g++: parse-error on valid smelkov at mph1 dot phys dot spbu dot ru
  2004-03-12 15:16 ` [Bug c++/14549] " bangerth at dealii dot org
@ 2004-04-21  1:40 ` pinskia at gcc dot gnu dot org
  2004-04-21  1:46 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21  1:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-21 01:38 -------
Reopening as this is a dup of ...

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


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


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

* [Bug c++/14549] g++: parse-error on valid
  2004-03-12  9:00 [Bug c++/14549] New: g++: parse-error on valid smelkov at mph1 dot phys dot spbu dot ru
  2004-03-12 15:16 ` [Bug c++/14549] " bangerth at dealii dot org
  2004-04-21  1:40 ` pinskia at gcc dot gnu dot org
@ 2004-04-21  1:46 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-21  1:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-21 01:38 -------
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=14549


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-12  9:00 [Bug c++/14549] New: g++: parse-error on valid smelkov at mph1 dot phys dot spbu dot ru
2004-03-12 15:16 ` [Bug c++/14549] " bangerth at dealii dot org
2004-04-21  1:40 ` pinskia at gcc dot gnu dot org
2004-04-21  1:46 ` 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).