(gdb) break templ_dbg.cpp:4 Breakpoint 1 at 0x804870b: file templ_dbg.cpp, line 4. (gdb) run Starting program: /home/dima/templ_dbg Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0x50d000 Breakpoint 1, f (t=@0xbfa784c4) at templ_dbg.cpp:4 4 return t+t; (gdb) print t $1 = (const int &) @0xbfa784c4: 5 (gdb) continue Continuing. 10 0.6 Program exited normally. (gdb)