* [Bug c++/10243] typeof(expr) yields wrong result if expr has reference type
[not found] <20030327144600.10243.mhl.schulze@t-online.de>
@ 2003-07-11 21:14 ` pinskia at physics dot uc dot edu
2003-10-13 23:23 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-11 21:14 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=10243
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|0000-00-00 00:00:00 |2003-07-11 21:14:25
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-11 21:14 -------
Well now on the mainline (20030711), it does say what the template is instantiated as
because it errors on declaration of the template but you can reproduce this bug with the
following code:
template <class T> struct test_type { static void dump() {typename T::t a;} };
int i;
int main() {
int& int_ref = i;
test_type<typeof(int_ref)>::dump();
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/10243] typeof(expr) yields wrong result if expr has reference type
[not found] <20030327144600.10243.mhl.schulze@t-online.de>
2003-07-11 21:14 ` pinskia at physics dot uc dot edu
@ 2003-10-13 23:23 ` reichelt at gcc dot gnu dot org
2003-10-13 23:23 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-13 23:23 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=10243
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |12605
nThis| |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/10243] typeof(expr) yields wrong result if expr has reference type
[not found] <20030327144600.10243.mhl.schulze@t-online.de>
2003-07-11 21:14 ` pinskia at physics dot uc dot edu
2003-10-13 23:23 ` reichelt at gcc dot gnu dot org
@ 2003-10-13 23:23 ` reichelt at gcc dot gnu dot org
2004-01-12 6:44 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-13 23:23 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=10243
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |12604
nThis| |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/10243] typeof(expr) yields wrong result if expr has reference type
[not found] <20030327144600.10243.mhl.schulze@t-online.de>
` (2 preceding siblings ...)
2003-10-13 23:23 ` reichelt at gcc dot gnu dot org
@ 2004-01-12 6:44 ` pinskia at gcc dot gnu dot org
2004-04-28 1:44 ` pinskia at gcc dot gnu dot org
2004-07-28 15:06 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-12 6:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-12 06:44 -------
Here is a better example (this should link):
template <class T> struct test_type { static void dump(); };
template <> void test_type<int&>::dump(){}
int i;
typedef int &t;
int main() {
int& int_ref = i;
test_type<t>::dump();
test_type<typeof(int_ref)>::dump();
}
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Last reconfirmed|2003-07-11 21:14:25 |2004-01-12 06:44:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10243
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/10243] typeof(expr) yields wrong result if expr has reference type
[not found] <20030327144600.10243.mhl.schulze@t-online.de>
` (3 preceding siblings ...)
2004-01-12 6:44 ` pinskia at gcc dot gnu dot org
@ 2004-04-28 1:44 ` pinskia at gcc dot gnu dot org
2004-07-28 15:06 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-28 1:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-28 00:42 -------
I think the problem is that it is already dereferencing the reference.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-01-12 06:44:16 |2004-04-28 00:42:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10243
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/10243] typeof(expr) yields wrong result if expr has reference type
[not found] <20030327144600.10243.mhl.schulze@t-online.de>
` (4 preceding siblings ...)
2004-04-28 1:44 ` pinskia at gcc dot gnu dot org
@ 2004-07-28 15:06 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-28 15:06 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Last reconfirmed|2004-04-28 00:42:07 |2004-07-28 15:06:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10243
^ permalink raw reply [flat|nested] 9+ messages in thread