repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.benjamin
/
18208.C
blob
2e9b7ce7ab69d9ad88956070ca2d684e0afd72fe
1
// { dg-do assemble }
2
// 981204 bkoz
3
// g++/18208
4
5
typedef unsigned int uint_32;
6
7
class puertorico {
8
public:
9
void *f ();
10
private:
11
uint_32 member;
12
};
13
14
void foo( )
15
{
16
uint_32 ui;
17
puertorico obj;
18
19
// Bug using static_cast<>
20
ui = static_cast<uint_32>(obj); // { dg-error "" } // ERROR -
21
22
// Bug when missing the pair of braces
23
ui = (uint_32) obj.f; // { dg-error "" } // ERROR -
24
}
25