public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12763] New: Error with tiny correct program (copy constructor with temporary problem?)
@ 2003-10-24 16:19 o dot kullmann at swansea dot ac dot uk
2003-10-24 16:20 ` [Bug c++/12763] " bangerth at dealii dot org
2003-12-09 18:33 ` dhazeghi at yahoo dot com
0 siblings, 2 replies; 3+ messages in thread
From: o dot kullmann at swansea dot ac dot uk @ 2003-10-24 16:19 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=12763
Summary: Error with tiny correct program (copy constructor with
temporary problem?)
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: o dot kullmann at swansea dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
struct X {
X(int) {}
};
int main() {
X(X(0));
X x(0);
}
> g++ Temporary.cpp
Temporary.cpp: In function `int main()':
Temporary.cpp:6: error: `X' undeclared (first use this function)
Temporary.cpp:6: error: (Each undeclared identifier is reported only
once for each function it appears in.)
Temporary.cpp:6: error: parse error before `(' token
Commenting out any of the two lines in main, and it compiles.
Error occurs also with version 3.2.1.
> g++ -v
Reading specs from
/home/kullmann/csoliver/GCC/gcc-3.3.1/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: /home/kullmann/csoliver/GCC/gcc-3.3.1/configure
--enable-threads=posix --enable-long-long
--prefix=/home/kullmann/csoliver/GCC/gcc-3.3.1
--with-local-prefix=/home/kullmann/csoliver/GCC/Include_3.3.1/
--enable-languages=c,c++ --disable-nls --enable-shared
Thread model: posix
gcc version 3.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/12763] Error with tiny correct program (copy constructor with temporary problem?)
2003-10-24 16:19 [Bug c++/12763] New: Error with tiny correct program (copy constructor with temporary problem?) o dot kullmann at swansea dot ac dot uk
@ 2003-10-24 16:20 ` bangerth at dealii dot org
2003-12-09 18:33 ` dhazeghi at yahoo dot com
1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2003-10-24 16:20 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=12763
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From bangerth at dealii dot org 2003-10-24 16:19 -------
This is a well-known bug in gcc (see the known bugs section of the home
page or the manual). It is fixed in present CVS (the future gcc 3.4).
W.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/12763] Error with tiny correct program (copy constructor with temporary problem?)
2003-10-24 16:19 [Bug c++/12763] New: Error with tiny correct program (copy constructor with temporary problem?) o dot kullmann at swansea dot ac dot uk
2003-10-24 16:20 ` [Bug c++/12763] " bangerth at dealii dot org
@ 2003-12-09 18:33 ` dhazeghi at yahoo dot com
1 sibling, 0 replies; 3+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-12-09 18:33 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12763
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-09 18:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-24 16:19 [Bug c++/12763] New: Error with tiny correct program (copy constructor with temporary problem?) o dot kullmann at swansea dot ac dot uk
2003-10-24 16:20 ` [Bug c++/12763] " bangerth at dealii dot org
2003-12-09 18:33 ` dhazeghi at yahoo dot com
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).