Depends on what your definition of "works" is.
For me, a smart gun that "works" would make an informed decision about when to fire. It would consider the target, what's behind the target, the motives of the holder, and what part of the target it would hit. If it was pointed at something I don't want shot, which it would know via synaptic connection with my brain, then it wouldn't shoot. If it was pointed at something I do want shot, it would hit it every time. If I pointed it at something I want shot and there were cute girls watching, it would hit it three times in rapid succession, then shoot not-quite-so-well when my buddy tries it. If I got all drunk and decided to do something irresponsible with it, it would refuse to operate and give me a stern lecture on the importance of self-control. In my mother's voice.
Other people get ahold of it, the gun decides what to do. Friends, family, and police officers would be more likely to gain my approval, but ultimately, it would transmit the decision to my brain via a secure frequency, and I could decide. Approval means the usual rules of what to shoot kick in, denial results in an annoying beep and little spikes shooting out of the grip.
Powered by magic and carrying a lightweight magazine that holds 400 rounds, it could never fail, either in its decision-making capacity or in the more traditional firearm ways. Also, it would make accurate stock market predictions and give winning lottery numbers.
That's what I call a smart gun.
Otherwise, no thank you.